필터 지우기
필터 지우기

Loading mat file error

조회 수: 5 (최근 30일)
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah 2016년 5월 24일
편집: Walter Roberson 2016년 5월 24일
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.

답변 (1개)

Guillaume
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.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by