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/06/22 14:30:23
![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](/uploads/image/z/15075563-59-3.jpg?t=matlab+%E9%9D%9E%E7%BA%BF%E6%80%A7%E6%8B%9F%E5%90%88+%E6%B1%82%E6%8C%87%E5%AF%BC+MODELFUN+should+return+a+vector+of+fitted+values+the+same+length+as+Y.%3E%3E+x%3D%5B1.4142+5.3852+6.0828+6.0828+7.2801+9.2195+9.2195+13.1529+14.4222+18.4391%5D%3By%3D%5B15.8+16.7+9.6+13.1+13.5+17.1+17.2+15.8+25.8+30.1%5D%3Bbeta0%3D%5B30+-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
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的数据点数不一样多,要一致才能拟合的.