Suppress error warnings in matlab (when using parfor loop)
Ältere Kommentare anzeigen
I am trying to supress a specific error message in one on my codes (specifically a "no start point" warning in a curve fitting function). I have found the warning using:
w = warning('query','last')
and then disabled/enabled that specific warning at the top/bottom of my script, such that:
warning('off','curvefit:fit:noStartPoint')
*body of script here*
warning('on','curvefit:fit:noStartPoint')
However the warning is not being suppressed. Am I doing something wrong?
Thanks in advance.
Akzeptierte Antwort
Weitere Antworten (1)
Dima Lisin
am 13 Mär. 2015
0 Stimmen
Hi Anthony,
Your script may be generating some other warning. Try checking the last warning again.
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!