Previous in Forum: Mac Floppy Disk to CD   Next in Forum: Problem Deleting Files/Folders from Windows Explorer
Close
Close
Close
2 comments
Rate Comments: Nested
Anonymous Poster

Undefined Function Errors in Matlab

09/22/2010 6:15 AM

I have used Matlab many times and I have installed a version 7.8 today after sometimes. Now when I am defining a character for symbolic expression, it is giving error. I also used google help for defining symbolic expression and also mathworks site. But still I get below errors. Am I missing something?

>> syms x y z a b c

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

>> a = syms('a')

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

>> sym a

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

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Active Contributor

Join Date: Aug 2010
Posts: 13
Good Answers: 1
#1

Re: Undefined Function Errors in Matlab

09/22/2010 5:51 PM

sym(a) is a function that can take one variable

syms is used with a plural list

I assume that is why one is singular and the other plural

Reply Score 1 for Good Answer
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#2

Re: Undefined Function Errors in Matlab

09/23/2010 3:38 AM

Looks to me like you are not properly defining your variables before calling the function. Apparently, "sym" is looking for an integer or float, but, since a has not been assigned a value previously, "sym" sees the "a" as a character, not as a variable representing a number...

Reply
Reply to Forum Thread 2 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!

Previous in Forum: Mac Floppy Disk to CD   Next in Forum: Problem Deleting Files/Folders from Windows Explorer

Advertisement