I have 2 questions:
1) The latest version of the MAT file is v7.3. Are all older MAT file versions able to be converted to a v7.3 file losslessly? i.e. does v7.3 support all datatypes/metadata supported by previous file formats?
2) What is the best way to convert old MAT file formats to v7.3 MAT files?
It seems like the following code snippet works pretty well for converting old MAT file formats to v7.3:
Is there any situation where this code snippet would fail for some reason?
Thanks everyone. If you want context for these questions, I've been asked to ingest MAT files into a data pipeline. The MAT files that I'm getting are v4 - v7.3. I've discovered that the latest v7.3 MAT files are HDF5 compliant files. Rather than adjust our (non-MATLAB) data pipeline to be able to handle all MAT file versions, it seems easier to upgrade incoming MAT files to v7.3 and just to use our well supported/documented HDF5 library for ingestion.