MATLAB Function Reference
  Go to function:
    Search    Help Desk 
error    Examples   See Also

Display error messages

Syntax

Description

error('error_message') displays an error message and returns control to the keyboard. The error message contains the input string error_message.

The error command has no effect if error_message is a null string.

Examples

The error command provides an error return from M-files.

The returned error message looks like:

See Also

dbstop      Set breakpoints in an M-file function

disp        Display text or array

lasterr     Last error message

warning     Display warning message



[ Previous | Help Desk | Next ]