matlab中的nlinfit函数怎么用X=[1 2 3 4 5 6 7 8 9 10 11]Y=[100.000 99.9328 99.7311 99.5320 102.0654 103.7961 104.5534 104.4563 104.6679 104.5061 104.6106]拟合函数yd=x(1)+x(2)*xd+x(3)*xd^2,求程序,
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/07 16:39:38
matlab中的nlinfit函数怎么用X=[1 2 3 4 5 6 7 8 9 10 11]Y=[100.000 99.9328 99.7311 99.5320 102.0654 103.7961 104.5534 104.4563 104.6679 104.5061 104.6106]拟合函数yd=x(1)+x(2)*xd+x(3)*xd^2,求程序,
matlab中的nlinfit函数怎么用
X=[1 2 3 4 5 6 7 8 9 10 11]
Y=[100.000 99.9328 99.7311 99.5320 102.0654 103.7961
104.5534 104.4563 104.6679 104.5061 104.6106]
拟合函数yd=x(1)+x(2)*xd+x(3)*xd^2,求程序,
matlab中的nlinfit函数怎么用X=[1 2 3 4 5 6 7 8 9 10 11]Y=[100.000 99.9328 99.7311 99.5320 102.0654 103.7961 104.5534 104.4563 104.6679 104.5061 104.6106]拟合函数yd=x(1)+x(2)*xd+x(3)*xd^2,求程序,
X=[1 2 3 4 5 6 7 8 9 10 11];
Y=[100.000 99.9328 99.7311 99.5320 102.0654 103.7961 104.5534 104.4563 104.6679 104.5061 104.6106];
eq=inline('a(1)+a(2)*x+a(3)*x.^2','a','x');
a=nlinfit(X,Y,eq,[1 2 1]);
plot(X,Y,'*',X,a(1)+a(2)*X+a(3)*X.^2)