Looping with unequal increment
Ältere Kommentare anzeigen
I have x= 5,15,25,30,45,60,65,70,75,90
other parameters (in the body of loop) depends on x values above
I have to run a loop
for i=min(x) : B :max(x)
Body
endfor
What shall be the B? How to go about it?
1 Kommentar
Stephen23
am 21 Jan. 2015
Note that you should not use i or j for your loop variable names, as these are the names of the inbuilt imaginary unit .
Akzeptierte Antwort
Weitere Antworten (0)
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!