Why does the CLF function clear the error message identifier?
Show older comments
The CLF function clears the error message identifier returned by the LASTERR and LASTERROR functions.
ErrorState.message='error message';
ErrorState.identifier='error:identifier';
lasterror(ErrorState);
[msg,id] = lasterr
msg =
error message
id =
error:identifier
lasterror
ans =
message: 'error message'
identifier: 'error:identifier'
clf
[msg,id] = lasterr
msg =
error message
id =
lasterror
ans =
message: 'error message'
identifier: ''
Accepted Answer
More Answers (0)
Categories
Find more on Platform and License in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!