Thread Subject: How to load a *.mat file in Windows XP, if the *.mat file was saved in Windows Vista

Subject: How to load a *.mat file in Windows XP, if the *.mat file was saved in Windows Vista

From: Amogh Rajanna

Date: 21 Nov, 2008 04:25:03

Message: 1 of 5

I had saved a *.mat file in Windows Vista MATLAB installation.

Now, I want to open this *.mat file in Windows XP MATLAB installation.
But when i try opening this *.mat file in Windows XP MATLAB installation, it gives me following error

load('-mat','Train2003')
??? Error using ==> load
Unable to read MAT-file C:\MATLAB7\work\libsvm-mat-2.87-1\Train2003.mat: not a binary MAT-file.

Anyone with ideas. Please help me out how to load this Train2003.mat file in Windows XP MATLAB installation.

Amogh Rajanna

Subject: How to load a *.mat file in Windows XP, if the *.mat file was saved in Windows Vista

From: Matt Fig

Date: 21 Nov, 2008 04:51:02

Message: 2 of 5

Was the Matlab version the same?

Subject: How to load a *.mat file in Windows XP, if the *.mat file was saved in Windows Vista

From: Amogh Rajanna

Date: 21 Nov, 2008 05:00:45

Message: 3 of 5

"Matt Fig" <spamanon@yahoo.com> wrote in message <gg5enm$e3e$1@fred.mathworks.com>...
> Was the Matlab version the same?

The version on Windows Vista was 7.4.0 (R2007a)
The version on Windows XP was 7.0.0 (R14) 2004

Fig, mat files created and saved on Windows Vista installations cannot be opened in Windows XP installations. What is the reason??

Subject: How to load a *.mat file in Windows XP, if the *.mat file was saved in Windows Vista

From: Matt Fig

Date: 21 Nov, 2008 05:31:02

Message: 4 of 5

> The version on Windows Vista was 7.4.0 (R2007a)
> The version on Windows XP was 7.0.0 (R14) 2004

The problem may be that the older version of Matlab cannot read these files saved in a newer version. I have both Vista and XP running 2007a and there is no compatibility issues at all.
If, in 2007a, you type:

help save

you will see that there is a switch

save filename -v7

in 2007a which allows a saved file to be read in version 7. You will have to use this switch in 2007a to load the file in 7.0

Subject: How to load a *.mat file in Windows XP, if the *.mat file was saved in Windows Vista

From: Amogh Rajanna

Date: 21 Nov, 2008 05:46:02

Message: 5 of 5

Thank you very much

version compatibility was the issue.

i verified it and i was able to load the mat file in the XP matlab installation.

Amogh Rajanna
 

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com