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
Aerospace Engineering, Orbital Mechanics, Space Environment, Weather and more MATLAB Teaching Codes
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