求解一道matlab curve fitting的题目,求解一道matlab curve fitting的题目变了X与Y之间的关系是Y=a*X-a*x^2采集到的数据是 X = [0.028 0.049 0.209 0.324 0.421 0.536 0.613 0.716 0.813 0.897 0.922]; Y = [0.055 0.069 0.569 1.234 1.3
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 15:09:46
求解一道matlab curve fitting的题目,求解一道matlab curve fitting的题目变了X与Y之间的关系是Y=a*X-a*x^2采集到的数据是 X = [0.028 0.049 0.209 0.324 0.421 0.536 0.613 0.716 0.813 0.897 0.922]; Y = [0.055 0.069 0.569 1.234 1.3
求解一道matlab curve fitting的题目,
求解一道matlab curve fitting的题目变了X与Y之间的关系是Y=a*X-a*x^2采集到的数据是 X = [0.028 0.049 0.209 0.324 0.421 0.536 0.613 0.716 0.813 0.897 0.922]; Y = [0.055 0.069 0.569 1.234 1.324 1.567 1.421 1.650 1.581 0.770 0.610];用MATLAB求a值,并且画出X和Y 的图像
求解一道matlab curve fitting的题目,求解一道matlab curve fitting的题目变了X与Y之间的关系是Y=a*X-a*x^2采集到的数据是 X = [0.028 0.049 0.209 0.324 0.421 0.536 0.613 0.716 0.813 0.897 0.922]; Y = [0.055 0.069 0.569 1.234 1.3
cftool拟合工具箱
命令行窗口里输入X = [0.028 0.049 0.209 0.324 0.421 0.536 0.613 0.716 0.813 0.897 0.922]; Y = [0.055 0.069 0.569 1.234 1.324 1.567 1.421 1.650 1.581 0.770 0.610];
左上角的参数里进行设置:X data选择变量X,Y data选择变量Y;
拟合类型选择Custom Equation,然后Y=f(X)=a*X-a*X^2
结果为
General model:
f(X) = a*X-a*(X^2)
Coefficients (with 95% confidence bounds):
a = 6.317 (5.133, 7.501) %这个就是你要求的值
Goodness of fit:
SSE: 0.9431
R-square: 0.7356
Adjusted R-square: 0.7356
RMSE: 0.3071