求用matlab作出UI图线,求图上有原始数据和用matlab cftool拟合过的的光滑曲线,数据如下——x=[0.310,0.410,0.448,0.480,0.503,0.518,0.527,0.543,0.559,0.573,0.570,0.577,0.583,0.5900.596,0.605,0.614,0.622,0.629,0.636,0.641,0.647,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 05:40:23
求用matlab作出UI图线,求图上有原始数据和用matlab cftool拟合过的的光滑曲线,数据如下——x=[0.310,0.410,0.448,0.480,0.503,0.518,0.527,0.543,0.559,0.573,0.570,0.577,0.583,0.5900.596,0.605,0.614,0.622,0.629,0.636,0.641,0.647,
求用matlab作出UI图线,求图上有原始数据和用matlab cftool拟合过的的光滑曲线,数据如下——
x=[0.310,0.410,0.448,0.480,0.503,0.518,0.527,0.543,0.559,0.573,0.570,0.577,0.583,0.5900.596,0.605,0.614,0.622,0.629,0.636,0.641,0.647,0.652,0.656,0.661,0.666,0.670,0.674,0.678,0.682,0.685,0.688,0.693,0.695,0.698];
y=[0.001,0.050,0.136,0.294,0.496,0.659,0.799,1.065,1.417,1.758,2.150,2.550,3.670,4.420,5.220,6.100,6.870,7.730,8.520,9.390,10.23,011.040,11.960,12.860,13.590,14.510,15.400,16.180,17.070,17.870,19.000,19.800,20.600];
求用matlab作出UI图线,求图上有原始数据和用matlab cftool拟合过的的光滑曲线,数据如下——x=[0.310,0.410,0.448,0.480,0.503,0.518,0.527,0.543,0.559,0.573,0.570,0.577,0.583,0.5900.596,0.605,0.614,0.622,0.629,0.636,0.641,0.647,
首先,你提供数据有误.x数据 ≠ y数据(x数据35个、y数据33个),这不符合拟合条件.
cftool 是Matlab曲线拟合工具箱.操作步骤如下:
1、在命令窗口中,输入x、y一系列相对应的数据,打开cftool工具箱;
>>x=[.],y=[.]
>>cftool
2、点击Data...,选择 X Data,Y Data,建立数据集(Create data set),然后关闭数据对话框(Cose)
3、点击Fitting...,点击新的拟合项目(New fit),选择拟合类型(Type of name)中的用户自定义函数类型(Custom Equations),点击New,输入y=a/(1+(a/37000-1)*exp(-b*x)),选择OK,选择center and scale X data,选择Immediate apply,最后应用(Apply)
4、此时,就得到结果
如还有不明白,可以再提问.或请把正确的数据传上来,再求其拟合曲线.