Hi Roger,
Thank you for the message.
gamma is a vector of parameters to me. googling i saw that the same word is used as u alerted me to the gamma function. I should change that name.
t and i are used for instance as "for i=2:5".
I didn't know that " i " couldn't be used like a coordinate of a vector. I should change for k for instance. Thank you for the warnings.
Best Regards
Renato
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gjthp6$jao$1@fred.mathworks.com>...
> "Renato Costa" <noldo22@yahoo.com.br> wrote in message <gjsaf2$j0u$1@fred.mathworks.com>...
> > Hi members,
> >
> > Matlab can't handle a 5 variables function?
> > i don't think so... anyone can help me with the below?
> >
> > ??? Error using ==> fdeti
> > Too many input arguments.
> >
> > Error in ==> main at 30
> > Reg(i+1,t)= (fdeti(gamma, mu, h, e, c) )* ( (alpha(i+1)) + (beta(i+1))*h(t1) + (lambda(i+1))*( mu(t1)+ (h(t1))*( e(t1)^2)) );
> >
> > where the fdeti.m file is only:
> >
> > function logistic = fdeti(gamma, mu, h, e, c)
> >
> > logistic = (1/(1+exp( gamma(i+1)*(mu(t1)+ (h(t1))*( e(t1)^2) c(i+1)) )))
> >
> > what's wrong?
> >
> > Thanks!
>
> The way your 'fdeti' function is written could lead to trouble. Do you intend for the 'gamma' which is named there to be an input vector or is it meant to be the builtin gamma function? Either way there will some kind of conflict. If 'gamma' is the name of a vector, then "gamma(i+1)" doesn't make sense with a complex index, since 'i' would be interpreted as the imaginary square root of 1. The same difficult would apply to "c(i+1)". If 'gamma' is to be the famous gamma function, then it should not be named as a generalized input argument. In any case you should not be using the name 'gamma' as a variable. Also I see no definition for the 't' variable within 'fdeti'.
>
> Roger Stafford
