作业帮 > 综合 > 作业

MODELFUN should return a vector of fitted values the same le

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/06/11 17:49:41
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.
/