Loading mat file error
1 view (last 30 days)
Show older comments
I want to load mat file. But I did not save the mat file. I download a toolbox from internet. However, when I run the using load method , then it produces the following error:
load pLocalGivenFeatures-person-4classes-10.mat;
Error using load
Unable to read MAT-file C:\Ibrahim\GPS Dead Reckoning GPS INS Enhanecement of Low-cost GPS
SLAM\Illuminated\code22\jflalonde-illuminationSingleImage-2620c25\jflalonde-illuminationSingleImage-2620c25\mycode\data\localIlluminationClassifiers\lighting\pLocalGivenFeatures-person-4classes-10.mat.
Not a binary MAT-file. Try LOAD -ASCII to read as text.
...............................................
load pLocalGivenFeatures-nonPerson-4classes-10.mat;
Warning: Variable 'lightingGivenNonObjectClassifier' originally saved as a SVMLightingClassifier cannot be instantiated as an object
and will be read in as a uint32.
0 Comments
Answers (1)
Guillaume
on 24 May 2016
The first error is matlab not being able to load the file for some reason. Maybe it is corrupted, maybe you're using an old version of matlab and it's saved in a newer format, maybe you don't have read permission. It's impossible for us to tell. Or maybe it's in a text format. Have you tried to do what matlab is suggesting?
The second error is because a variable in the mat file is an object of class SVMLightingClassifier. For matlab to load that correctly, it needs to see the code of SVMLightingClassifier (as it was when the mat file was saved). In the absence of such code matlab can't reconstruct the object and therefore just give you a number instead (which is completely useless). Unfortunately, only you can tell where to find that code. As far as I know it's not part of toolbox.
0 Comments
See Also
Categories
Find more on Workspace Variables and MAT-Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!