how to pick out postion in a vector
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hey guys, I have a vector a= [ 1,0,8,0,5,0,3,0,6,9] I want to run a for loop like this for p=1:length(a) if a ==0 spit out where in vector a the zeros are located end end Thanks
0 Commenti
Risposte (1)
Azzi Abdelmalek
il 10 Mag 2013
Modificato: Azzi Abdelmalek
il 10 Mag 2013
a= [ 1,0,8,0,5,0,3,0,6,9]
idx=find(~a)
0 Commenti
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!