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 Kommentare

Star Strider
Star Strider am 8 Dez. 2014
Post the line that throws the error, and the complete error message.
Naema
Naema am 8 Dez. 2014
Star Strider, I edited my question, please see
per isakson
per isakson am 8 Dez. 2014
Bearbeitet: per isakson am 8 Dez. 2014
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
Naema
Naema am 8 Dez. 2014
Bearbeitet: Naema am 8 Dez. 2014
here is what I got:
Name Size Bytes Class Attributes
Ceff10 1x50 400 double
Naema
Naema am 8 Dez. 2014
Bearbeitet: Naema am 8 Dez. 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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Star Strider
Star Strider am 8 Dez. 2014

0 Stimmen

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.

Weitere Antworten (0)

Tags

Gefragt:

am 8 Dez. 2014

Bearbeitet:

am 8 Dez. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by