필터 지우기
필터 지우기

Difficulty opening MATLAB file

조회 수: 2 (최근 30일)
Christopher Kanan
Christopher Kanan 2012년 2월 7일
Hi,
I downloaded some data, and now I'm trying to analyze it. However, I can't seem to open it. Here is what happens:
fid = fopen('trainingSet.txt');
tline = fgetl(fid);
>> tline
tline =
MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Mon Mar 08 15:49:49 2010
>> fclose(fid)
ans =
0
>> temp = load('trainingSet.txt', '-mat');
Error using load
Unable to read MAT-file D:\Olfactory Dataset\Pleasantness\trainingSet.txt
File may be corrupt.
I redownloaded the file on another machine and I'm getting the same error. I'm using R2011b (64 bit) on Win7.
One more piece of information:
whos -file trainingSet.txt
Name Size Bytes Class Attributes
expSubset 1x424 77767868 struct
Thanks!

답변 (2개)

Christopher Kanan
Christopher Kanan 2012년 2월 7일
I don't know if there is a better way to do this.

Andrew Newell
Andrew Newell 2012년 2월 7일
I get the same problem, so maybe it is corrupt. You should try contacting the authors.

카테고리

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