Undefined function or method '...' for input arguments of type 'double'.

Asked by D on 10 Apr 2011
Latest activity Answered by n on 28 May 2012

I'm getting the following error when I try to run some function m-files: ??? Undefined function or method '[name of function]' for input arguments of type 'double'.

I know this usually happens when the file isn't in the working directory, but that's not the case here.

When I was running these m-files in a different directory on my computer, it worked fine. I moved them to another directory on my laptop, and they're still fine, but I get this error on two of my desktops.

Thank you.

0 Comments

D

Products

No products are associated with this question.

3 Answers

Answer by Walter Roberson on 11 Apr 2011

Are you function names in mixed case, and your laptop runs Windows but your desktop runs Linux ?

1 Comment

D on 11 Apr 2011

Yes, the function names are mixed case.

The laptop and one of the desktops run Windows 7.
The other one is a Mac.

I get the same errors on both desktops, though.

Walter Roberson
Answer by Paulo Silva on 10 Apr 2011

change the working directory to the folder where you have your code or add the path.

Go to the File and choose the Set Path

2 Comments

D on 10 Apr 2011

That's not the problem. The file is in the working directory.

I've tried running it from the editor, but I'm getting the same error.

Oleg Komarov on 11 Apr 2011

You have to add the path

Paulo Silva
Answer by n on 28 May 2012

Hi,

Please consider that you should be EXACTLY in the same directory; and not even in sub-directories within the right path.

I hope this solves the case. It worked for me.

0 Comments

n

Contact us