MODELFUN should return a vector of fitted values the same length as Y.x=-[7.71 -6.29 -5.86 -0.26 0.45 0.64 0.9 2.73 3.25 4.69 5.26 9.52 9.8 10.62 11 11.3 12.86 13.2 14.54 17.4 18.07 18.5 19.7 23.09 23.99 24.11 24.54 25.55 26.49 26.54];y=[1/30:1/30:1]
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 20:56:20
MODELFUN should return a vector of fitted values the same length as Y.x=-[7.71 -6.29 -5.86 -0.26 0.45 0.64 0.9 2.73 3.25 4.69 5.26 9.52 9.8 10.62 11 11.3 12.86 13.2 14.54 17.4 18.07 18.5 19.7 23.09 23.99 24.11 24.54 25.55 26.49 26.54];y=[1/30:1/30:1]
MODELFUN should return a vector of fitted values the same length as Y.
x=-[7.71 -6.29 -5.86 -0.26 0.45 0.64 0.9 2.73 3.25 4.69 5.26 9.52 9.8 10.62 11 11.3 12.86 13.2 14.54 17.4 18.07 18.5 19.7 23.09 23.99 24.11 24.54 25.55 26.49 26.54];
y=[1/30:1/30:1];
beta0=[9 1]';
[beta,r,j]=nlinfit(x',y','volum',beta0);
beta
Error using ==> nlinfit
MODELFUN should return a vector of fitted values the same length as Y.
MODELFUN should return a vector of fitted values the same length as Y.x=-[7.71 -6.29 -5.86 -0.26 0.45 0.64 0.9 2.73 3.25 4.69 5.26 9.52 9.8 10.62 11 11.3 12.86 13.2 14.54 17.4 18.07 18.5 19.7 23.09 23.99 24.11 24.54 25.55 26.49 26.54];y=[1/30:1/30:1]