using lsqcurvefit with non continuous function
古いコメントを表示
Hi all,
I'm using lsqcurvefit to fit a model made in COMSOL Multiphysics to some experimental data. Sometimes the model can't converge for specific parameters (haven't found out yet why, it seems kind of random as well). Is there a way to return something to lsqcurvefit (returning all 0's now) without screwing up the fitting process?
1 件のコメント
John D'Errico
2019 年 5 月 29 日
編集済み: John D'Errico
2019 年 5 月 29 日
- lsqcurvefit assumes well-defined continuous functions. As such, it may randomly fail to succeed on some data.
- You have found some instances where lsqcurvefit fails, AND your function is known to be discontinuous.
Why should we be surprised?
Arbitrarily returning all zeros to lsacurvefit some of the time? A great way to create exactly the circumstance where it will fail.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Computations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!