Difficulty opening MATLAB file
Show older comments
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.
Here is the link to the data, if anybody wants to try: http://www.ploscompbiol.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pcbi.1000740.s002
One more piece of information:
whos -file trainingSet.txt
Name Size Bytes Class Attributes
expSubset 1x424 77767868 struct
Thanks!
Answers (2)
Christopher Kanan
on 7 Feb 2012
1 vote
Andrew Newell
on 7 Feb 2012
0 votes
I get the same problem, so maybe it is corrupt. You should try contacting the authors.
Categories
Find more on Data Import and Analysis 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!