(Answers Dev) Restored edit
Beginner MATLAB question (I just started using matlab a week ago)
2 ビュー (過去 30 日間)
古いコメントを表示

2 件のコメント
採用された回答
Stephen23
2019 年 1 月 27 日
編集済み: Stephen23
2019 年 1 月 27 日
Simpler and more efficient to use logical indexing:
idx = ss(:,1)==1;
out = ss(idx,2)
If you really want to use |find|:
idy = find(ss==1);
out = ss(idy,2)
Basic MATLAB concepts, such as how to use indexing, are explained in the introductory tutorials:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!