数据拟合问题。

7 views (last 30 days)
piksina
piksina on 14 May 2023
Answered: fischak on 14 May 2023
已知有五组数据,他们画出的曲线如图
我只能分别把五条曲线拟合为三次多项式,要求就是怎样把这五条曲线拟合为一个二元多项式表示
形式为F=a*i*Z+b*i*Z.^2+c*i*Z.^3的形式
i对应的式电流,Z对应的是气隙,F对应的轴向力

Accepted Answer

fischak
fischak on 14 May 2023
fx=(b(1)+b(2)*x+b(3)*x.^2+b(4)*x.*y+b(5)*x.^3)./(1+b(6)*x+b(7)*x.*y+b(8)*x.^2.*y);
SSy = 29114
b =[3.536419787 1.508853635 -0.03445725593 0.06125633835 0.01355562355 -0.0338963446 0.0007619172333 -2.277850887e-05]
RSS = 10.2281528862
MSe = 0.10654
R^2 = 0.99965

More Answers (0)

Categories

Find more on Linear and Nonlinear Regression in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!