how assertion raised exceptions are handled in matlab
7 views (last 30 days)
Show older comments
Hello,
Could anyone can explain how an assertion raised exception is handled . If possible could you please send a pseudo code for it.
Any help would be appreciated.
Thank you.
0 Comments
Answers (1)
Walter Roberson
on 7 Dec 2011
>> try; assert(false,'man:from:mars','I only eat guitars'); catch me; disp(me); end
MException object with properties:
identifier: 'man:from:mars'
message: 'I only eat guitars'
stack: [0x1 struct]
cause: {}
1 Comment
See Also
Categories
Find more on Measurements and Spatial Audio in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!