Info
This question is closed. Reopen it to edit or answer.
selection of specific value of a column from a matrix
1 view (last 30 days)
Show older comments
cellular=1:6
resource=[1 6;2 12;3 7;4 3;5 17]
what are the syntaxes are to use if i want cellular value select row with min column2 value 5 and more??????
output like
1 1 6
2 3 7
3 2 12
and so on...................
0 Comments
Answers (1)
madhan ravi
on 4 Jul 2020
Use the same code I gave you in previous code , but remove 'descend' .
5 Comments
madhan ravi
on 5 Jul 2020
ROM = [cellular(1:size(resource,1)).', sortrows(resource, 2)];
ROM = ROM(ROM(:, end) > 5, :)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!