Thread Subject:
input arguments of type 'double'

Subject: input arguments of type 'double'

From: mahshid

Date: 21 Oct, 2010 01:52:04

Message: 1 of 5

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

Subject: input arguments of type 'double'

From: Matt Fig

Date: 21 Oct, 2010 02:19:04

Message: 2 of 5

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.

Subject: input arguments of type 'double'

From: mahshid

Date: 21 Oct, 2010 03:32:05

Message: 3 of 5

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.

Subject: input arguments of type 'double'

From: Matt Fig

Date: 21 Oct, 2010 14:45:08

Message: 4 of 5

"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.

Subject: input arguments of type 'double'

From: Arun Babu

Date: 27 Oct, 2012 15:07:08

Message: 5 of 5

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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
input arguments of... Arun Babu 27 Oct, 2012 11:09:13
double Arun Babu 27 Oct, 2012 11:09:13
char Arun Babu 27 Oct, 2012 11:09:13
rssFeed for this Thread

Contact us