Where is the zero?
3 ビュー (過去 30 日間)
古いコメントを表示
How to find the location of a zero (or a different number) in a vector ?
like :
a=[ 1 3 5 6 34 4 0 1 3 4 50]
=>7
0 件のコメント
採用された回答
madhan ravi
2018 年 11 月 9 日
編集済み: madhan ravi
2018 年 11 月 9 日
a=[ 1 3 5 6 34 4 0 1 3 4 50]
index=find(a==0)
4 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!