Undefined function or variable

1 view (last 30 days)
Naema
Naema on 8 Dec 2014
Edited: Naema on 8 Dec 2014
Hi matlab users: I was trying to run a code in which I loaded a .mat file called cefff10.mat. I had this error mentioned in the title and I am sure the .mat exists in the same folder as the code and the its name is written correctly with lowercase letters, what could be the problem? I am so confused, any help? thanks
  5 Comments
Naema
Naema on 8 Dec 2014
Edited: Naema on 8 Dec 2014
here is what I got:
Name Size Bytes Class Attributes
Ceff10 1x50 400 double
Naema
Naema on 8 Dec 2014
Edited: Naema on 8 Dec 2014
oh, it turned out that the mat file is still named with the previous name even though I changed its name. I fixed this issue by keeping its previous name Ceff10 not Cefff10.

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 8 Dec 2014
MATLAB is case-sensitive, so ceff10 is not the same as Ceff10. Change all references from ceff10 to Ceff10 and you shouldn’t have any more problems with it. Check your other variables as well.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!