Valutazione avanzata e gestione delle eccezioni
Valutare espressioni, acquisire dati sugli errori
MATLAB® include funzionalità per valutare indirettamente le espressioni e acquisire dati sugli errori.
Qualsiasi codice MATLAB che rileva un errore e lancia un'eccezione costruisce un oggetto MException. Il codice MATLAB può lanciare eccezioni predefinite o eccezioni costruite dall'utente.
Funzioni
Argomenti
- Alternatives to the eval Function
Although the
evalfunction is very powerful and flexible, it is not always the best solution to a programming problem. In many instances, there are recommended alternative approaches to usingeval. - Exception Handling in a MATLAB Application
It is a good programming practice to include error checking in your programs to ensure reliable operation under all conditions. You can decide how your programs respond to different types of errors.