How can I find the first row of a specific number in a matrix?
7 ビュー (過去 30 日間)
古いコメントを表示
Hello Matlab Users,
- I have a A matrix:
- A=[2 4;2 10;2 15;5 14;6 7;6 15;8 16;8 10] and I want to see the first row where I meet let's say "6"(which is the 5th row).Could you help me in solving that problem,please?
0 件のコメント
採用された回答
その他の回答 (1 件)
Joseph Cheng
2014 年 3 月 26 日
you can use the find() function and search for when the first column in A contains "6".
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!