MATLAB Function Reference    

Language Constructs and Debugging

 

MATLAB as a Programming Language
builtin Execute builtin function from overloaded method
eval Interpret strings containing MATLAB expressions
evalc Evaluate MATLAB expression with capture
evalin Evaluate expression in workspace
feval Function evaluation
function Function M-files
global Define global variables
nargchk Check number of input arguments
persistent Define persistent variable
script Script M-files

 

Control Flow
break Terminate execution of for loop or while loop
case Case switch
catch Begin catch block
continue Pass control to the next iteration of for or while loop
else Conditionally execute statements
elseif Conditionally execute statements
end Terminate for, while, switch, try, and if statements or indicate last index
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

 

Interactive Input
input Request user input
keyboard Invoke the keyboard in an M-file
menu Generate a menu of choices for user input
pause Halt execution temporarily

 

Object-Oriented Programming
class Create object or return class of object
double Convert to double precision
inferiorto Inferior class relationship
inline Construct an inline object
int8, int16, int32 Convert to signed integer
isa Detect an object of a given class
loadobj Extends the load function for user objects
saveobj Save filter for objects
single Convert to single precision
superiorto Superior class relationship
uint8, uint16, uint32 Convert to unsigned integer

 

Debugging
dbclear Clear breakpoints
dbcont Resume execution
dbdown Change local workspace context
dbmex Enable MEX-file debugging
dbquit Quit debug mode
dbstack Display function call stack
dbstatus List all breakpoints
dbstep Execute one or more lines from a breakpoint
dbstop Set breakpoints in an M-file function
dbtype List M-file with line numbers
dbup Change local workspace context

 

Function Handles
function_handle MATLAB data type that is a handle to a function
functions Return information about a function handle
func2str Constructs a function name string from a function handle
str2func Constructs a function handle from a function name string

 Logical Functions Elementary Matrices and Matrix Manipulation