Specify callback function to execute when run-time error occurs
ErrorFcn property specifies the function
to execute when an error event occurs. A run-time error event is generated
immediately after a run-time error occurs.
Run-time errors include hardware errors and timeouts. Run-time errors do not include configuration errors such as setting an invalid property value.
Run-time error event information is stored in the
You can retrieve any error message with the
Read only while running
Character vector, function handle, or cell array