Effacer les filtres
Effacer les filtres

hold all warning in command line

2 vues (au cours des 30 derniers jours)
genesis
genesis le 12 Nov 2013
is there any way i can prevent warning message from showing in the command line? and able to refer back the error msg after execution? im doing this because i dont wan to be interrupted as i want to demo my program

Réponses (1)

Sean de Wolski
Sean de Wolski le 12 Nov 2013
  1. Put a try/catch around your code that is throwing the error.
  2. Use MException.last to retrieve the last error.
try
[17 1]*[1 2 0]
catch ME
end
Later on...
If you still have ME, you can use it. Else:
ME = MException.last

Catégories

En savoir plus sur Argument Definitions 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