Small Satellites

Home » Posts tagged 'Basic Matlab'

Tag Archives: Basic Matlab

Advertisements

Basic MATLAB

Using the break command to stop the while loop for given condition

t = 1;
while 1 % infinite loop
t = t+1;
    if (t > 1000 ) % condition
        break      % break the loop
    end
end
Advertisements
%d bloggers like this: