Thread Subject:
Undefined function or method...for input arguments of type 'char'

Subject: Undefined function or method...for input arguments of type 'char'

From: hg Georges

Date: 23 Mar, 2008 10:15:04

Message: 1 of 5

Hi!
I have a problem:when trying to use 'imread' or
'uigetfile',I get the message
"Undefined function or method 'syms' for input
arguments of type 'char'".
It began when trying to execute a .m file in from the 'work'
 subdirectory, but strangely this happened after a long time
while everything was going OK.
Now it happens whenever the .m file is located.
Seemingly, this happens with many functions and methods, (as
one can see when searching "matlab 2007a "undefined
function"" on Google).
I think this should be due to a problem with the path (I
think forcing Matlab to write in "C:\My documents\Matlab"
was a very bad idea).
Does anybody know how to fix this problem in a general way?

Subject: Undefined function or method...for input arguments of type 'char'

From: Dani Zigon

Date: 1 Jul, 2008 15:24:02

Message: 2 of 5

type in Matlab main window
which uigetfile

if nothing comes up or it says that uigetfile cannot be
found, there is something wrong with your path. The easiest
two fixes are
1. change your directory to the correct one
or
2. simply rename the file-- just do a 'save as' and then for
instance NEW or something.

retype in the which + name of .m file command like you did above
It should show the path. If it does, the problem has been fixed

Dani

"hg Georges" <harry.georgess@gmail.com> wrote in message
<fs5aj8$mn1$1@fred.mathworks.com>...
> Hi!
> I have a problem:when trying to use 'imread' or
> 'uigetfile',I get the message
> "Undefined function or method 'syms' for input
> arguments of type 'char'".
> It began when trying to execute a .m file in from the 'work'
> subdirectory, but strangely this happened after a long time
> while everything was going OK.
> Now it happens whenever the .m file is located.
> Seemingly, this happens with many functions and methods, (as
> one can see when searching "matlab 2007a "undefined
> function"" on Google).
> I think this should be due to a problem with the path (I
> think forcing Matlab to write in "C:\My documents\Matlab"
> was a very bad idea).
> Does anybody know how to fix this problem in a general way?

Subject: Undefined function or method...for input arguments of type 'char'

From: Iris Müller Iris Müller

Date: 28 Feb, 2013 18:19:10

Message: 3 of 5

"Dani Zigon" <danimal429@yahoo.com> wrote in message <g4di6i$att$1@fred.mathworks.com>...
> type in Matlab main window
> which uigetfile
>
> if nothing comes up or it says that uigetfile cannot be
> found, there is something wrong with your path. The easiest
> two fixes are
> 1. change your directory to the correct one
> or
> 2. simply rename the file-- just do a 'save as' and then for
> instance NEW or something.
>
> retype in the which + name of .m file command like you did above
> It should show the path. If it does, the problem has been fixed
>
> Dani
>
> "hg Georges" <harry.georgess@gmail.com> wrote in message
> <fs5aj8$mn1$1@fred.mathworks.com>...
> > Hi!
> > I have a problem:when trying to use 'imread' or
> > 'uigetfile',I get the message
> > "Undefined function or method 'syms' for input
> > arguments of type 'char'".
> > It began when trying to execute a .m file in from the 'work'
> > subdirectory, but strangely this happened after a long time
> > while everything was going OK.
> > Now it happens whenever the .m file is located.
> > Seemingly, this happens with many functions and methods, (as
> > one can see when searching "matlab 2007a "undefined
> > function"" on Google).
> > I think this should be due to a problem with the path (I
> > think forcing Matlab to write in "C:\My documents\Matlab"
> > was a very bad idea).
> > Does anybody know how to fix this problem in a general way?
>


Hi!

I have the same problem. I did what you said.The pathway is correct, and I renamed the file. When I type which XXX.m the file can be found. but when I try to open it it says again "undefined function......"
Is there another possiblity what could be wrong. I´m very new in MAtlab, so maybe it is something very basic??

Thank you!

Subject: Undefined function or method...for input arguments of type 'char'

From: varunsanduja@gmail.com

Date: 30 Jun, 2013 18:07:04

Message: 4 of 5

Hello
i m facing the same problem. when m gng to run the code then got dis msg in command window (??? Undefined function or method 'histogram' for input arguments of type 'char'.) What should i do???
 

Subject: Undefined function or method...for input arguments of type 'char'

From: Steven_Lord

Date: 1 Jul, 2013 14:18:36

Message: 5 of 5



<varunsanduja@gmail.com> wrote in message
news:2efa8648-6a24-44b3-95b8-00d891f87cef@googlegroups.com...
> Hello
> i m facing the same problem. when m gng to run the code then got dis msg
> in command window (??? Undefined function or method 'histogram' for input
> arguments of type 'char'.) What should i do???

There's no function named histogram in MATLAB or any of the toolboxes. Did
you mean to call HIST instead?

http://www.mathworks.com/help/matlab/ref/hist.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

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
which Dani 1 Jul, 2008 11:25:10
rssFeed for this Thread

Contact us