Main Content

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

Utilitaires de programmation

Évaluer indirectement des expressions ou des fonctions, régler des minuteurs et traiter les exceptions

MATLAB® inclut des fonctionnalités permettant d’évaluer indirectement des expressions, de régler des minuteurs pour l’exécution des programmes et capturer des données relatives aux erreurs.

Fonctions

développer tout

evalÉvaluer une expression MATLAB
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
try, catchExecute statements and catch resulting errors
MExceptionCapture error information
addCauseRecord additional causes of exception
addCorrectionProvide suggested fix for exception (depuis R2019a)
getReportGet error message for exception
MException.lastReturn last uncaught exception
rethrowRethrow previously caught exception
throwThrow exception
throwAsCallerThrow exception as if occurs within calling function
matlab.lang.correction.AppendArgumentsCorrectionCorrect error by appending missing input arguments (depuis R2019a)
matlab.lang.correction.ConvertToFunctionNotationCorrectionCorrect error by converting to function notation (depuis R2019b)
matlab.lang.correction.ReplaceIdentifierCorrectionCorrect error by replacing identifier in function call (depuis R2019b)
parfevalOnAllRun function on all workers in background
parallel.pool.ConstantCopy or create data only once on workers in parallel pool (depuis R2021b)
canUseGPUVerify supported GPU is available for computation (depuis R2019b)
canUseParallelPoolVerify that parallel functions can use a parallel pool (depuis R2020b)

Rubriques