Is there documentation on the structure of MAT-files in MATLAB?
70 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 12 Nov 2020
Is there documentation on the structure of MAT-files in MATLAB?
I would like to create MAT-files without the presence of MATLAB. These MAT-files will be created in my C or FORTRAN programs, but read in at a later time into MATLAB.
Accepted Answer
MathWorks Support Team
on 12 Nov 2020
Edited: MathWorks Support Team
on 12 Nov 2020
We strongly recommend using our MAT-file routines, described in our External Interfaces manual, for reading and writing MAT-files in MATLAB. This will ensure compatibility should the structure of the MAT-file change in the future.
Should it be absolutely necessary to write your own routines to read/write MAT-files, we have published the MAT-file format in the Access area of our web site. To find this PDF document, point your web browser to:
Note that MATLAB 5.x and later can read MATLAB 4.x MAT-files. Therefore, if you have code that you used in MATLAB 4.x to create MAT-files, you can still create MAT-files with this code and read the MAT-files into MATLAB 5.x and later versions.
0 Comments
More Answers (0)
See Also
Categories
Find more on Workspace Variables and MAT-Files in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!