因为要调用ode45函数,需要用到匿名函数故需要得到函数表达式,在matlab拟合工具箱中拟合的得到的表达式并不理想,对后续结果有较大影响,求求各位大神能够帮忙给出合适的拟合函数Voc-t的表达式
voc=[10997.5170897349 9631.69217721258 8078.37487674282 6131.72456390872 3950.10148830597 1621.20613360136 188.071493911889 964.008449749182 3906.01120118484 5921.44087988188 8299.79190565586 9884.98031929308 11094.7780076040 12288.1462784434 13356.2303352348 14167.4815742641 14708.9536521420 15119.3345592777 15727.4133269483 15834.7750399181 15345.2599048023 14493.9897351808 14038.5313783323 13378.7149527767 12283.3336189208 11768.3662439899];t=0:2e-3:0.05;

 Accepted Answer

uguteng
uguteng on 16 May 2023

0 votes

拟合没有标准答案,下列模型似乎更好些。
SSy = 5.9593e+08fx=(b(1)+b(2)*x+b(3)*x.^2+b(4)*x.^3+b(5)*x.^4+b(6)*x.^5)./(1+b(7)*x+b(8)*x.^2+b(9)*x.^3+b(10)*x.^4);
b =[10908.0024 -2436366.619 195898233.2 -7048279068 1.207764774e+11 -7.113456911e+11 -172.3580034 11602.44321 -326668.316 3528466.943]
RSS = 556905.453885
MSe = 37127
R^2 = 0.99907

More Answers (0)

Categories

Find more on 数学 in Help Center and File Exchange

Asked:

on 16 May 2023

Answered:

on 16 May 2023

Community Treasure Hunt

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

Start Hunting!