Date: Jan 28, 2014 10:21 AM
Author: Steven Lord
Subject: Re: Undefined function or variable - for no reason...

"Yilin " <> wrote in message
> Hi everyone. I'm having a similar issue and I don't have duplicated
> function name in my working directory. There are only have two
> self-created functions 'functest' and 'funcone'. 'functest' is created
> after I started my current matlab. 'funcone' is created from last time.
> However, 'funcone' is not running. 'functest' is fine. I have tried
> reinstall matlab. The problem still exists. Do I have to create a new
> function every time ?? Any help is much appreciated.
> EDU>> pwd
> ans =
> C:\Users\DESKTOP\Documents\MATLAB
> EDU>> dir
> . .. funcone.m functest.m
> EDU>> which -all funcone
> C:\Users\DESKTOP\Documents\MATLAB\funcone.m
> EDU>> funcone(1)
> Undefined function 'funcone' for input arguments of type 'double'.

Show the group the contents of funcone.m. Is it a function file, a script
file, a class file, or not a MATLAB program file at all? [Just because it
has the extension doesn't mean it's guaranteed to be a MATLAB program file.]

Steve Lord
To contact Technical Support use the Contact Us link on