(Answers Dev) Restored edit
Beginner MATLAB question (I just started using matlab a week ago)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Worker
am 27 Jan. 2019
Kommentiert: Rena Berman
am 12 Mär. 2020

2 Kommentare
Akzeptierte Antwort
Stephen23
am 27 Jan. 2019
Bearbeitet: Stephen23
am 27 Jan. 2019
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:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!