MATLAB Function Reference LANGUAGE CONSTRUCTS MATLAB AS A PROGRAMMING LANGUAGE builtin Execute builtin function from overloaded method eval Interpret strings containing MATLAB expressions function Function M-files global Define global variables script Script M-files CONTROL FLOW break Terminate execution of for or while loop case Case switch catch Begin catch block *else Conditionally execute statements *elseif Conditionally execute statements *end Terminate for, while, switch, try, and if statements or indicate *error Display error messages *for Repeat statements a specific number of times *if Conditionally execute statements otherwise Default part of switch statement return Return to the invoking function switch Switch among several cases based on expression try Begin try block warning Display warning message *while Repeat statements an indefinite number of times