How i can open a file that is written using matlab 2013 by using matlab 2009?

I have a file that is written using matlab 2013, and i want to open it using matlab 2009.

1 Comment

How did you write the file in Matlab? It could be an image file written by imwrite, or a MAT file created by save, an Excel file, text file, sound file, movie file, hdf5 file, binary file, P-coded file, ...

Sign in to comment.

 Accepted Answer

Be clear. Are you asking about a mat file or an m-file?
A mat file is possibly not readable if a simple save was done, unless the saver was careful to use the proper option in the save. It also depends on what is in the mat file.
| Can Load in |
Option | Versions | Supported Features
---------+--------------+----------------------------------------------
'-v7.3' | 7.3 or later | Version 7.0 features plus support for
| | data items greater than or equal to 2GB on
| | 64-bit systems
---------+--------------+----------------------------------------------
'-v7' | 7.0 or later | Version 6 features plus data compression and
| | Unicode character encoding
---------+--------------+----------------------------------------------
'-v6' | 5 or later | Version 4 features plus N-dimensional arrays,
| | cell and structure arrays, and variable names
| | greater than 19 characters
---------+--------------+----------------------------------------------
'-v4' | all | Two-dimensional double, character, and
| | sparse arrays
An m-file is generally readable, since it is simply a text file. However, some functions may not exist in the old release. Since we don't know what type your file is or what is in it, there is no way to give a better answer.

More Answers (2)

You can open it as any text file. You can run your m-file if all functions used in your file exist in your previous version of Matlab

2 Comments

I think the format of m files is the same. You will not have any problem to open them. Suppose in Matlab 2013 there is a new function called fcn1, this function can't be used in Matlab 2009.

Sign in to comment.

A .fig file written in R2013 would possibly give errors when opened in R2009.
GUIDE GUIs (.m with .fig) are often not backwards compatible.
.mat files are saved by default with -v7 format. Baring bugs, a .mat file written with the default -v7 in R2013 can be opened in R2009. However, if the .mat file contains anything other than numeric, string, struct, and cell array, then the contents might not be supported in R2009. Neural Networks are an example of something that has changed object structure between R2009 and R2013.
Image files such as .jpg are generally readable in R2009, but R2009 did not support as wide a variety of image types as R2013 does. JPEG2000 for example was not supported in R2009 (as best I recall.)

Categories

Asked:

on 10 Feb 2014

Edited:

Jan
on 10 Feb 2014

Community Treasure Hunt

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

Start Hunting!