How to suppress messages/warnings from a script?

조회 수: 2 (최근 30일)
Christian Bauer
Christian Bauer 2018년 10월 15일
답변: Stephan 2018년 10월 15일
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

채택된 답변

Stephan
Stephan 2018년 10월 15일
Hi,
try:
options = optimoptions ('fsolve', 'Display', 'none');
result = fsolve (your_input_to_fsolve , options);
This should turn off the messages.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by