필터 지우기
필터 지우기

Error fit: Complex value computed by model function

조회 수: 30 (최근 30일)
Pietro Scapolo
Pietro Scapolo 2022년 5월 12일
댓글: Alex Sha 2022년 5월 13일
Hi I want to fit my data through the equation: but it appears the error: Complex value computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.
  댓글 수: 2
Pietro Scapolo
Pietro Scapolo 2022년 5월 12일
The equation I put in the fitting tool is:
5.*e.^(-a.*x)./(sqrt(b.^2 - a.^2)) .*(a.*sin(x.*sqrt(b.^2-a.^2))+sqrt(b.^2-a.^2).*cos(x.*sqrt(b.^2-a.^2)))
Alex Sha
Alex Sha 2022년 5월 13일
There are two parameters (a and b) only, the result will not be good:
Sum Squared Error (SSE): 779.783298373557
Root of Mean Square Error (RMSE): 0.279246002365935
Correlation Coef. (R): 0.843000031198818
R-Square: 0.710649052601208
Parameter Best Estimate
---------- -------------
a 3714.9148653265
b -572016.731340392

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

답변 (1개)

Torsten
Torsten 2022년 5월 12일
편집: Torsten 2022년 5월 12일
Fit under the constraint
b^2-a^2 >= 0

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by