(Answers Dev) Restored edit
Beginner MATLAB question (I just started using matlab a week ago)
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Matthew Worker
il 27 Gen 2019
Commentato: Rena Berman
il 12 Mar 2020

2 Commenti
Risposta accettata
Stephen23
il 27 Gen 2019
Modificato: Stephen23
il 27 Gen 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:
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!