Small Satellites

Home » 2014 » September

Monthly Archives: September 2014

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: