remove error message in command window
31 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yuli Hartini
am 11 Mai 2017
Kommentiert: Image Analyst
am 12 Mai 2017
How to remove error message in command window matlab if we don't want the message to appear?
Is this possible?
note: I'm using m-file
Thanks before..
1 Kommentar
Stephen23
am 11 Mai 2017
Bearbeitet: Stephen23
am 11 Mai 2017
Once the error message has been displayed in the command window there is not much that can be done about it, other than clearing the whole command window using clc. It might be easier to prevent it getting displayed in the first place: see the documentation for catch.
Akzeptierte Antwort
Jan
am 11 Mai 2017
error message are very important. Because they should never be ignored, it is a bad idea to remove them. A much better idea is to either avoid them, by considering the reasons, or to handle them in a TRY/CATCH block.
2 Kommentare
Image Analyst
am 12 Mai 2017
Are you sure it wasn't a warning (orange type instead of red)? Otherwise your program would not have finished (unless the error-causing code was in a try block).
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Entering Commands finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!