Tags: arguments, char, function, hii, imread, input, matlab, message, method, methodfor, problemwhen, programming, type, uigetfile, undefined, yms

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

On Programmer » Matlab

2,763 words with 6 Comments; publish: Wed, 07 May 2008 09:50:00 GMT; (20046.88, « »)

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?

All Comments

Leave a comment...

  • 6 Comments
    • One possibility is that you have a space in the name of your .m file. If your file name is "syms foo.m" then you would get an error message that says:

      "??? Undefined function or method 'syms' for input arguments of type 'char'."

      -Jon

      #1; Wed, 28 Jul 2010 08:44:00 GMT
    • One possibility is that you have a space in the name of your .m file. If your file name is "syms foo.m" then you would get an error message that says:

      "??? Undefined function or method 'syms' for input arguments of type 'char'."

      -Jon

      #2; Wed, 28 Jul 2010 08:44:00 GMT
    • One possibility is that you have a space in the name of your .m file. If your file name is "syms foo.m" then you would get an error message that says:

      "??? Undefined function or method 'syms' for input arguments of type 'char'."

      -Jon

      #3; Wed, 28 Jul 2010 08:44:00 GMT
    • One possibility is that you have a space in the name of your .m file. If your file name is "syms foo.m" then you would get an error message that says:

      "??? Undefined function or method 'syms' for input arguments of type 'char'."

      -Jon

      #4; Wed, 28 Jul 2010 08:44:00 GMT
    • One possibility is that you have a space in the name of your .m file. If your file name is "syms foo.m" then you would get an error message that says:

      "??? Undefined function or method 'syms' for input arguments of type 'char'."

      -Jon

      #5; Wed, 28 Jul 2010 08:44:00 GMT
    • One possibility is that you have a space in the name of your .m file. If your file name is "syms foo.m" then you would get an error message that says:

      "??? Undefined function or method 'syms' for input arguments of type 'char'."

      -Jon

      #6; Wed, 28 Jul 2010 08:44:00 GMT