how assertion raised exceptions are handled in matlab
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2011-12-7
>> 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: {}
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Measurements and Spatial Audio 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!