Programming > Programming Utilities

24 functions in MATLAB › Programming > Programming Utilities.

addCauseAttaches an underlying exception to an MException as one of its causes.
addCorrectionAttaches a suggested fix to an MException.
canUseGPUTells whether a supported GPU is available for computation.
canUseParallelPoolTells whether a parallel pool can be used.
evalEvaluates MATLAB code held in a character vector.
evalcEvaluates code and returns its printed output as text instead of showing it.
evalinEvaluates code in the base workspace or in the workspace of the caller.
getReportReturns the text describing an exception.
isvalidTells whether a handle-type object, such as a timer, is still valid.
maxNumCompThreadsReturns the number of computational threads available to MatLivre.
MExceptionCreates an exception object that carries an identifier and a message.
MException.lastReturns the most recent exception that was raised.
rethrowRaises an exception again, usually from inside a catch block.
runRuns a script file given by its path or name.
startMethod of timer objects: starts the timer.
startatMethod of timer objects: starts the timer at a given date and time.
stopMethod of timer objects: stops a running timer.
throwRaises an MException object as an error.
throwAsCallerRaises an exception as if it came from the calling function.
timerCreates a timer object that runs a function after a delay or repeatedly.
timerfindFinds valid timer objects, optionally filtered by property values.
timerfindallFinds all timer objects, including those hidden from timerfind.
try, catchRuns code and handles any error it raises instead of stopping the program.
waitMethod of timer objects: blocks until the timer has finished running.