Get Matlab HDF5 version

Matlab R2021b upgraded to HDF5 1.10.7. R2015a <= Matlab < R2021b uses HDF5 1.8.12 from November 2013.

Check Matlab HDF5 library version by:

[major,minor,rel] = H5.get_libversion()

Newer versions of the HDF5 library can write HDF5 1.8 files when specific options are used. This may be necessary to allow Matlab to read HDF5 files written by other applications. For example, Python uses h5py libver option to control HDF5 version compatibility.