Beginner MATLAB question (I just started using matlab a week ago)

2 ビュー (過去 30 日間)
Matthew Worker
Matthew Worker 2019 年 1 月 27 日
コメント済み: Rena Berman 2020 年 3 月 12 日
Please help give the function to solve this. Thank you
  2 件のコメント
Rena Berman
Rena Berman 2020 年 1 月 16 日

(Answers Dev) Restored edit

Rena Berman
Rena Berman 2020 年 3 月 12 日

(Answers Dev) Restored edit

サインインしてコメントする。

採用された回答

Stephen23
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 ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by