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
John D'Errico 2019년 5월 29일
편집: John D'Errico 2019년 5월 29일
  1. lsqcurvefit assumes well-defined continuous functions. As such, it may randomly fail to succeed on some data.
  2. 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에 대해 자세히 알아보기

제품

릴리스

R2017b

태그

질문:

2019년 5월 29일

편집:

2019년 5월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by