求大神帮忙,非线性方程最小二乘法。

求大神帮忙,非线性方程最小二乘法
已知y1,y2,t,F变量(2000多个数据),求参数a,b,c,d,e,fF:\TIMU
TIMU.png (1.28 MB, 下载次数: 266)
problem

 採用された回答

sawoci
sawoci 2022 年 11 月 17 日

0 投票

f1=fittype('a*(1-b*y1.^2).*y2+c*y1+d/2*sin(e*t+f)','problem',{'y1','y2'},'coefficients',{'a','b','c','d','e','f'},'independent','t'); %定义拟合的方程
[FO,G,O]=fit(xdata,ydata,f1,'problem',{y1,y2},'StartPoint',[1,1,1,1,1,1]); %最小二乘拟合,也可以用'Lower'和'Upper'设置参数的范围
para=coeffvalues(FO); %获取参数a,b,c,d,e,f
a=para(1); %b,c,d,e,f依此类推

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB 快速入门 についてさらに検索

タグ

質問済み:

2022 年 11 月 17 日

回答済み:

2022 年 11 月 17 日

Community Treasure Hunt

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

Start Hunting!