Main Content

Code Execution

Evaluate expressions or functions indirectly, set timers

MATLAB®  includes functionality to indirectly evaluate expressions and to set timers for program execution.


expand all

evalEvaluate MATLAB expression
evalcEvaluate MATLAB expression and capture results
evalinEvaluate MATLAB expression in specified workspace
fevalEvaluate function
runRun MATLAB script
builtinExecute built-in function from overloaded method
timerSchedule execution of MATLAB commands
deleteDelete files or objects
getQuery graphics object properties
isvalidDetermine valid handles
setSet graphics object properties
startStart timer
startatSchedule timer to fire at specified time
stopStop timer
timerfindFind timer objects
timerfindallFind all timer objects
waitBlock command prompt until timer stops running
parfevalOnAllRun function on all workers in background
parallel.pool.ConstantCopy or create data only once on workers in parallel pool (Since R2021b)
canUseGPUVerify supported GPU is available for computation (Since R2019b)
canUseParallelPoolVerify that parallel functions can use a parallel pool (Since R2020b)