more for loop help
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
for c = 11:20
if c~=11 && c~=14 && c~=17 && c~=20
break
end
% how can I loop through for all values of r, which are r=11,14,17,20????
end
Risposte (2)
bym
il 7 Ago 2011
for k = 11:3:20
%do stuff
end
Walter Roberson
il 7 Ago 2011
Or you could use
for k = [11,14,17,20]
%do stuff
end
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!