quit

August 12th, 2009 No Comments   Posted in Functions

quit Quit MATLAB session.
quit terminates MATLAB after running the script FINISH.M,
if it exists. The workspace information will not be saved
unless FINISH.M calls SAVE. If an error occurs while
executing FINISH.M, quitting is cancelled. Read More

while

March 6th, 2008 No Comments   Posted in Controls

while Repeat statements an indefinite number of times.
The general form of a while statement is: Read More

if

March 6th, 2008 No Comments   Posted in Controls

if if statement condition.
The general form of the if statement is Read More

for

March 6th, 2008 No Comments   Posted in Controls

for Repeat statements a specific number of times.
The general form of a for statement is: Read More

end

March 6th, 2008 No Comments   Posted in Controls

end Terminate scope of FOR, WHILE, SWITCH, TRY, and IF statements. Without END’s, FOR, WHILE, SWITCH, TRY, and IF wait for further input. Each end is paired with the closest previous unpaired FOR, WHILE, SWITCH, TRY or IF and serves to terminate its scope. Read More

case

March 6th, 2008 No Comments   Posted in Controls

case SWITCH statement case.
case is part of the SWITCH statement syntax, whose general form is: Read More

break

March 6th, 2008 No Comments   Posted in Controls

break Terminate execution of WHILE or FOR loop.
break terminates the execution of FOR and WHILE loops.
In nested loops, break exits from the innermost loop only. Read More