input arguments of type 'double'

  • Follow


Hi every body;

what shoud i do to get rid of this error  "input arguments of type 'double'" here?
for i = 1:n
         for j = 1:m
                k =k+1; 
              rad(k) = exp(j * dz - dz);
                 g1(k)= pp(EqN); 
                 ang(k) = q;%*180/pi;
         end
end
r=rad';
p=ang';
 [qx,qy] = meshgrid(r,p);
qz = F(qx,qy);

tanxx
0
Reply mahshid 10/21/2010 1:52:04 AM

It is always helpful to put the ENTIRE text of the error message.  I bet the ENTIRE error message even says which variable MATLAB thinks you are calling as a function.
0
Reply Matt 10/21/2010 2:19:04 AM


Hi Matt,

here is the entire text of the error:
??? Undefined function or method 'F' for input arguments of type 'double'.

Error in ==> NE at 200
qz = F(qx,qy);


"Matt Fig" <spamanon@yahoo.com> wrote in message <i9o7uo$c5o$1@fred.mathworks.com>...
> It is always helpful to put the ENTIRE text of the error message.  I bet the ENTIRE error message even says which variable MATLAB thinks you are calling as a function.
0
Reply mahshid 10/21/2010 3:32:05 AM

"mahshid " <mahshid770@yahoo.com> wrote in message <i9oc7k$8f5$1@fred.mathworks.com>...
> Hi Matt,
> 
> here is the entire text of the error:
> ??? Undefined function or method 'F' for input arguments of type 'double'.
> 
> Error in ==> NE at 200
> qz = F(qx,qy);


Great, we are getting somewhere!  Now, according to your thinking, is F a function or a variable?  If you were thinking that F is a variable, MATLAB doesn't see where you defined it.  You need to make sure it is defined in the local workspace.  If you were thinking that F is a function, what kind of function is it?  Is it an M-File function?  If so, is it in the local directory or on the search path?  These are the kinds of questions you need to ask yourself in figuring out what went wrong.
0
Reply Matt 10/21/2010 2:45:08 PM

I too faced same kind of problems. Some times the program works and some time it doesn't. after searching web for a long time i could solve it. 
1st. Make sure your all working files are in folders which were saved in set path.
finally. if it is not solved yet... keep all the files(functions and main program) in working folder then run. I bet you don't face this problem again.

rgds,
Arun
"mahshid " <mahshid770@yahoo.com> wrote in message <i9o6c3$3gk$1@fred.mathworks.com>...
> Hi every body;
> 
> what shoud i do to get rid of this error  "input arguments of type 'double'" here?
> for i = 1:n
>          for j = 1:m
>                 k =k+1; 
>               rad(k) = exp(j * dz - dz);
>                  g1(k)= pp(EqN); 
>                  ang(k) = q;%*180/pi;
>          end
> end
> r=rad';
> p=ang';
>  [qx,qy] = meshgrid(r,p);
> qz = F(qx,qy);
> 
> tanxx
0
Reply narun.iitb (1) 10/27/2012 3:07:08 PM

4 Replies
1351 Views

(page loaded in 0.039 seconds)

Similiar Articles:













7/22/2012 10:41:54 PM


Reply: