Loading mat file error
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Guillaume
2016 年 5 月 24 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!