how assertion raised exceptions are handled in matlab

12 vues (au cours des 30 derniers jours)
Mohan
Mohan le 7 Déc 2011
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.

Réponses (1)

Walter Roberson
Walter Roberson le 7 Déc 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 commentaire
Sean de Wolski
Sean de Wolski le 7 Déc 2011
+1
A five figure reputation by Answers' first birthday?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Measurements and Spatial Audio dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by