Loading mat file error

8 Ansichten (letzte 30 Tage)
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah am 24 Mai 2016
Bearbeitet: Walter Roberson am 24 Mai 2016
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.

Antworten (1)

Guillaume
Guillaume am 24 Mai 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.

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by