필터 지우기
필터 지우기

How can i solve this problem' when i am running, this message appears: Failure in initial objective function evaluation. FMINUNC cannot continue.

조회 수: 1 (최근 30일)
I'm writing a matlab program to try to fit a mathematical model to real data.

채택된 답변

Torsten
Torsten 2024년 4월 15일
편집: Torsten 2024년 4월 15일
Call your function in which you define the sum of differences squared between real and modelled data for the initial values of your parameters and see what the problem is. Maybe the function returns something undefined or a vector of values instead of a single value.
  댓글 수: 19
Torsten
Torsten 2024년 4월 16일
편집: Torsten 2024년 4월 16일
Star Strider's code under
demonstrates how to use curve fitting for a system of ODEs.
But your code is ok - I doubt you can learn much from the link (except for "lsqcurvefit" as a different possible solver).
By the way: it would help if you used the google translator french -> english and post your comments in English:
Khadija
Khadija 2024년 4월 16일
Thank you sir for your help, and I will take your comment into consideration.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by