Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I try to find the coefficients of the polynomial using nonlinear regression analysis.

조회 수: 1 (최근 30일)
haeyeon JI
haeyeon JI 2020년 8월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
The variables I will enter are magnitude M, distance R, and SA values corresponding to magnitude and distance.
for example,
M=[1 2 3]
R=[0 5 10 20 30 40 50 60 70]
SA is a Value corresponding to distance and magnitude : SA(M,R)
ex, SA(1,0) = 0.09
SA(1,5) = 0.06
SA(1,10) = 0.06
SA(1,20) = 0.03 ....
Estimated regression equation is
a*M+b*log(R+c)+d
I want to find the variables ' a,b and c ' through multiple non-linear regression.
The graph to be completed is as follows (values in the picture are examples, so irrelevant numbers)

답변 (1개)

John D'Errico
John D'Errico 2020년 8월 19일
That function is not a polynomial.
Regardless, use one of many tools, thus lsqcurvefit or lsqnonlin from the optimization toolbox.
Use fit if you have the curvefitting toolbox.
Use fitnlm or nlinfit if you have the stats toolbox.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by