麻烦各位给看看这个问题
t=;x=;
myfunc=inline('(566*beta(1))/(566*beta(2)+(beta(1)-566*beta(2))*exp(-beta(1)*(t-1978)))','beta','t');
beta=nlinfit(t,x,myfunc,);
a=beta(1),b=beta(2)
%test the model
tt=min(X):max(x);
xx=(a-2*b*x)*(a-b*x)*x
plot(t,x,‘0‘,t,xx,'r')
显示??? Error using ==> nlinfit at 113
Error evaluating inline model function.
Caused by:
Error using ==> inlineeval at 15
Error in inline expression ==> (566*beta(1))/(566*beta(2)+(beta(1)-566*beta(2))*exp(-beta(1)*(t-1978)))
Matrix dimensions must agree.不知道哪不对,求助
页:
[1]