How to suppress messages/warnings from a script?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Christian Bauer
am 15 Okt. 2018
Beantwortet: Stephan
am 15 Okt. 2018
Hi, I use fsolve(...); within a big loop (10^9 iterations). However I can't supress the message:
"No solution found.
fsolve stopped because the last step was ineffective. However, the vector of function values is not near zero, as measured by the default value of the function tolerance. "
but I think that this output significantly slows down the process. I already used warnings off, but that doesn't help. Any ideas?
Best, Christian
0 Kommentare
Akzeptierte Antwort
Stephan
am 15 Okt. 2018
Hi,
try:
options = optimoptions ('fsolve', 'Display', 'none');
result = fsolve (your_input_to_fsolve , options);
This should turn off the messages.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!