For Loop Which Skips Numbers Based on Row Vector
Ältere Kommentare anzeigen
I've got a row vector containing hunderds of random, ascending numbers. I need to run a for loop which skips these specific numbers. How do I write the counter?
Akzeptierte Antwort
Weitere Antworten (1)
Torsten
am 26 Mär. 2020
0 Stimmen
Use "setdiff" to remove the row vector elements from the range of the for-loop and name the vector v.
Then simply type
for v
...
end
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!