Sets an error if the given condition, s, is not satisfied. An optional input argument, errormessage may be used to customize the error displayed when assert fails.
Ends execution of the nearest enclosing loop, even if the end condition for the loop has not been satisfied. break will not end execution of multiple, nested loops.
Calls the built-in function f with given inputs, if applicable. If there is a custom function that overrides f, the custom function implementation will be ignored and the built-in function will be executed.
case is used in switch statements and specifies a constant expression, expression, that the variable used in switch is compared with. The expression in each case label must be a constant and unique in the scope of the switch statement.
Declares a list of variables as global. When a variable is declared as global it may be accessed within a function without
being passed as a parameter. Variables must be declared as global in both the scope they are defined and the scope they are
used.
Executes the script s in the current session of the application. The script s either needs to contain the fully qualified path or must reside in the search paths for the current session of
the application.
Skips formatting output when displaying matrices of size greater than or equal to size, resulting in faster printing for large data sets as all elements are printed as floats.
Just like an if-else statement but can only compare one variable. Each possibility is represented with a 'case' with the default case being 'otherwise'.
try is used in try-catch blocks and is the code that is executed first in the sequence of the try-catch block. If there is an error in the try block, control is passed to the catch block, where exceptions are handled.
addlibrary
Adds an existing library or a custom library to load the functions contained in it.
addpath
Updates the search path for functions by adding the given directories d, ... to the existing path R.
addtoolbox
Adds an existing toolbox or a custom toolbox to load the functions contained in it.
all
Returns a logical that indicates whether all of the corresponding elements of the input are nonzero.
and
Performs logical conjunction, the 'and' operation, equivalent to the & operator.
ans
Returns the most recently computed result that was not assigned to a variable.
any
Returns a logical that indicates whether any of the corresponding elements of the input are nonzero.
arg
Returns the argument (angle) of each element of z in radians. The arguement is defined as atan2(imag(z),real(z)).
assert
Sets an error if the given condition, s, is not satisfied. An optional input argument, errormessage may be used to customize the error displayed when assert fails.
assignin
Assigns the value val to variable name var in context con.
break
Ends execution of the nearest enclosing loop, even if the end condition for the loop has not been satisfied. break will not end execution of multiple, nested loops.
builtin
Calls the built-in function f with given inputs, if applicable. If there is a custom function that overrides f, the custom function implementation will be ignored and the built-in function will be executed.
case case is used in switch statements and specifies a constant expression, expression, that the variable used in switch is compared with. The expression in each case label must be a constant and unique in the scope of the switch statement.
catch catch is used in try-catch blocks and is executed when an exception or error occurs in the try block.
class
Retrieves the class type of the given input, x.
ge
Perform greater than or equal comparison, equivalent to the >= operator.
genvarname
Generates unique names which can be used for variables, based on the given input(s), s.
getargc
Gets the number of command line arguments, argc, that the application is launched with.
getargv
Gets the command line argument at the given index, index.
getcmdinput
Gets the command line argument at position n supplied as part of the -input option while launching the application.
getenv
Gets the value of the environment variable x, defined for the current session of the application.
getnumofcmdinputs
Gets the number of command line arguments as part of the -input option while launching the application.
global
Declares a list of variables as global. When a variable is declared as global it may be accessed within a function without being passed as a parameter. Variables must be declared as global in both the scope they are defined and the scope they are used.
/
Right division of scalars and/or matrices operator.
rmpath
Updates the search path for functions by removing the given directories d, ... from the existing path R.
run
Executes the script s in the current session of the application. The script s either needs to contain the fully qualified path or must reside in the search paths for the current session of the application.
setenv
Assigns the value of the environment variable x to value for the current session of the application.
skipformat
Skips formatting output when displaying matrices of size greater than or equal to size, resulting in faster printing for large data sets as all elements are printed as floats.
sort
Sorts elements of x into ascending order by default.
subsref
Extract a subset of a collection given an indexing method and range. sub on the value val.
switch
Just like an if-else statement but can only compare one variable. Each possibility is represented with a 'case' with the default case being 'otherwise'.
times
Perform multiplication on a list of arguments from left to right, applied to matrices on an element-wise basis. Equivalent to the .* operator.
try try is used in try-catch blocks and is the code that is executed first in the sequence of the try-catch block. If there is an error in the try block, control is passed to the catch block, where exceptions are handled.