Adding latest matlab file for generating hdf5 files for debugging/testing.