| MATLAB Function Reference | Search  Help Desk |
| lastwarn | See Also |
lastwarn
lastwarn('')
lastwarn('string')
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.
lasterr, warning