Creating a matlab error with idents creates the wrong structure?!?
Show older comments
Hey,
Check this code:
try
error('msgIdent','msgString')
catch err
err
end
err =
MException with properties:
identifier: ''
message: 'msgIdent'
cause: {0x1 cell}
stack: [0x1 struct]
I would expect the id to be msgIdent and the message to be msgString... This is almost exactly the same as their example, so I can't figure out what is wrong...
1 Comment
Yoav Romach
on 24 Jun 2014
Answers (0)
Categories
Find more on Structures 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!