matlab 非线性拟合 求指导 MODELFUN should return a vector of fitted values the same length as Y.>> x=[1.4142 5.3852 6.0828 6.0828 7.2801 9.2195 9.2195 13.1529 14.4222 18.4391];y=[15.8 16.7 9.6 13.1 13.5 17.1 17.2 15.8 25.8 30.1];beta0=[30 -0.1
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/26 08:24:19
matlab 非线性拟合 求指导 MODELFUN should return a vector of fitted values the same length as Y.>> x=[1.4142 5.3852 6.0828 6.0828 7.2801 9.2195 9.2195 13.1529 14.4222 18.4391];y=[15.8 16.7 9.6 13.1 13.5 17.1 17.2 15.8 25.8 30.1];beta0=[30 -0.1
matlab 非线性拟合 求指导 MODELFUN should return a vector of fitted values the same length as Y.
>> x=[1.4142 5.3852 6.0828 6.0828 7.2801 9.2195 9.2195 13.1529 14.4222 18.4391];
y=[15.8 16.7 9.6 13.1 13.5 17.1 17.2 15.8 25.8 30.1];
beta0=[30 -0.1];
[beta,r,j]=nlinfit(x,y,@fun,beta0);
beta
ci=nplarci(beta,r,j)
nlintool(x,y,fun,beta0,0.05,'x','y')
Error using ==> nlinfit at 127
MODELFUN should return a vector of fitted values the same length as Y.
matlab 非线性拟合 求指导 MODELFUN should return a vector of fitted values the same length as Y.>> x=[1.4142 5.3852 6.0828 6.0828 7.2801 9.2195 9.2195 13.1529 14.4222 18.4391];y=[15.8 16.7 9.6 13.1 13.5 17.1 17.2 15.8 25.8 30.1];beta0=[30 -0.1
你的X和Y的数据点数不一样多,要一致才能拟合的.