Undefined function or variable

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 个评论

Post the line that throws the error, and the complete error message.
Star Strider, I edited my question, please see
cefff10.mat &nbsp is the name of a file.
Run
whos -file cefff10.mat
to learn which variables is in that file. And read the help on load
here is what I got:
Name Size Bytes Class Attributes
Ceff10 1x50 400 double
Naema
Naema 2014-12-8
编辑:Naema 2014-12-8
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.

请先登录,再进行评论。

 采纳的回答

Star Strider
Star Strider 2014-12-8

0 个投票

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.

更多回答(0 个)

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by