Info
此问题已关闭。 请重新打开它进行编辑或回答。
selection of specific value of a column from a matrix
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
madhan ravi
2020-7-4
Use the same code I gave you in previous code , but remove 'descend' .
5 个评论
madhan ravi
2020-7-5
ROM = [cellular(1:size(resource,1)).', sortrows(resource, 2)];
ROM = ROM(ROM(:, end) > 5, :)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!