Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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 8

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 8

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 8

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 8

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

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

Subject: input arguments of type 'double'

From: suresh sharma

Date: 2 Sep, 2013 14:44:09

Message: 6 of 8

"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

Subject: input arguments of type 'double'

From: suresh sharma

Date: 2 Sep, 2013 14:45:09

Message: 7 of 8

hi I am not being able to solve this problem.

Undefined function 'subclust' for input arguments of type 'double'.

Error in anfis_MW (line 30)
 [C,S] = subclust([Xin,Xout],[0.5 0.5 0.5 0.25 0.6 0.57],[],[1.1 0.5 0.2 0]); % R2=0.675,
 epoch=100, [C,S] = subclust([Xin,Xout],[0.5 0.5 0.5 0.25 0.6 0.57],[],[1.1 0.5 0.2 0])

Error in run (line 64)
evalin('caller', [script ';']);
 
Do I need fuzzy logic toolbox to run this code?



"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

Subject: input arguments of type 'double'

From: Louis Tkach

Date: 31 Mar, 2014 05:39:12

Message: 8 of 8

Remember where you have your function saved. Directory Directory Directory

Tags for this Thread

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.

Contact us