近似を続けることができません
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
for 構文を用いて、三次元行列の要素に対して連続で近似を行っています。
近似の最中に以下の文言が表示され、近似が途中で終了してしまいます。
このエラーが出てもエラーが出たところのみをスキップして近似を継続する方法はありますか?
エラー: fit>iFit (line 348)
Inf がモデル関数で計算されました。近似を続けることはできません。
係数の上限と下限を使用するか、範囲を狭めてみてください。
エラー: fit (line 116)
[fitobj, goodness, output, convmsg] = iFit( xdatain, ydatain, fittypeobj, ...
2 commentaires
Réponse acceptée
michio
le 6 Nov 2020
try/catch の構文を使うのは如何でしょうか?
for ii=1:N
try
% (フィッティング処理)
catch ME
% エラーが起きたときに何か必要な処理があれば記載
% 例:エラーが発生したときの ii を表示するのであれば
ii
end
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Curve Fitting Toolbox 入門 dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!