| MATLAB Function Reference | ![]() |
Syntax
lastwarn
lastwarn('')
lastwarn('string')
Description
lastwarn
returns a string containing the last warning message issued by MATLAB.
lastwarn('')
resets the lastwarn function so that it will return an empty string matrix until the next warning is encountered.
lastwarn('string')
sets the last warning message to 'string'. The last warning message is updated regardless of whether warning is on or off.
See Also
| lasterr | lcm | ![]() |