Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot run a custom function

0 views
Skip to first unread message

Ron Yu

unread,
Oct 3, 2008, 11:28:01 PM10/3/08
to
I am using R2007a and have written a few custom functions. They worked for a while, but suddenly ceased to work. I got the following error message:

??? Undefined function or variable 'CustomFunction'.

or

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

It acted as if the directory where the fuction resides was not recognized, even though I made the directory current. I also tried to reset the path, but to no avail.

Has anyone experience this type of things before? Any comments and suggestion is welcome to help solve this mystery.

Thanks,

Ron

Husam Aldahiyat

unread,
Oct 4, 2008, 1:30:02 AM10/4/08
to
Ummm maybe you confused the name of the function with its file name. For example in the CustomFunction.m file the function has a different function [ output ] = name( input ).

Ron Yu

unread,
Oct 4, 2008, 9:25:04 AM10/4/08
to
"Husam Aldahiyat" <numa...@gmail.com> wrote in message <gc6v0q$2lo$1...@fred.mathworks.com>...

> Ummm maybe you confused the name of the function with its file name. For example in the CustomFunction.m file the function has a different function [ output ] = name( input ).

I checked it and it was not the case. As a matter of fact, the same script containing the custom function was running fine for a while. It all of the sudden stopped working.

Thanks for the feedback.

Ron

0 new messages