matlab 知道数据,反求函数式.X=[380390400410420430440450460470480490500510520530540550560570580590600610620630640650660670680690700710720730740]Y有3组数据.Y1=[0.001360.017750.14880.67011.61792.48582.95612.72772.10671.29370.46050.06560.0087
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 18:42:28
matlab 知道数据,反求函数式.X=[380390400410420430440450460470480490500510520530540550560570580590600610620630640650660670680690700710720730740]Y有3组数据.Y1=[0.001360.017750.14880.67011.61792.48582.95612.72772.10671.29370.46050.06560.0087
matlab 知道数据,反求函数式.
X=[380
390
400
410
420
430
440
450
460
470
480
490
500
510
520
530
540
550
560
570
580
590
600
610
620
630
640
650
660
670
680
690
700
710
720
730
740
]
Y有3组数据.
Y1=[0.00136
0.01775
0.1488
0.6701
1.6179
2.4858
2.9561
2.7277
2.1067
1.2937
0.4605
0.0656
0.0087
0.0572
0.1493
0.2861
0.4529
0.6359
0.8476
1.0594
1.224
1.3492
1.355
1.2393
1.0249
0.7712
0.5115
0.3169
0.1803
0.0958
0.0482
0.0234
0.0113
0.0054
0.0026
0.0012
0.0006
]
Y2=[0
0.002219
0.01558
0.0696
0.1693
0.3057
0.4784
0.6586
0.8934
0.1225
1.4508
1.3734
1.061
0.9251
0.9666
1.0589
1.1564
1.1904
1.1987
1.1522
1.0486
0.9378
0.7936
0.635
0.4765
0.3377
0.213
0.1271
0.0713
0.00375
0.0188
0.0091
0.0044
0.0021
0.0009
0.0004
0.0002
]
Y3=[0.004759
0.07766
0.6698
3.0807
7.6938
12.2709
12.0701
14.6784
12.1631
8.7143
4.417
1.6821
0.5031
0.1708
0.077
0.0369
0.01644
0.0048
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
]
求这3组数据的函数式.附加散点曲线图.
matlab 知道数据,反求函数式.X=[380390400410420430440450460470480490500510520530540550560570580590600610620630640650660670680690700710720730740]Y有3组数据.Y1=[0.001360.017750.14880.67011.61792.48582.95612.72772.10671.29370.46050.06560.0087
可以拟合嘛.
>> P1=polyfit(X,Y1,5);
>> P2=polyfit(X,Y2,5);
>> P3=polyfit(X,Y3,5);
上述代码是求该数据的五次多项式拟合.
其中P1,P2,P3的元素为Y1,Y2,Y3关于X的五次多项式的系数.