Input argument "" is undefined
12 views (last 30 days)
Show older comments
My problem arises when I run the following piece of code:
[theta_to , f_to , cov_to] = maximize(@p_11,theta,2,1,0);
I get this error message:
??? Undefined function or method 'p_11'
for input arguments of type 'double'.
I have made sure that all my functions are in the same library. When I try to call p_ll, I get the following error message:
??? Input argument "theta" is
Error in ==> p_ll at 3
The p_ll function looks like this:
global R N T x y u
[S_AR, A]=p_S_AR(T, psi, s_u);
ll(i)=log(p_lli(T, R, y_i, xb_i, A, u(:,:,i)));
It may be trivial but I cannot find my mistake(s). Does anyone have an idea?
Hin Kwan Wong on 30 Nov 2011
is p_ll with letter L not number ONE
you put it as p_11 with number ONE
Find more on Numeric Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!