Matlab/Octave |
|||||||||||||
For loop
< Case 1 > For var = startVal:endVal body; // do what you need to do end;
< Case 2> For var = startVal:step:endVal body; // do what you need to do end;
< Case 3> For var = vector body; // do what you need to do end;
Examples
|
|||||||||||||