Adding changes to matlab file that generates the .h5 file that the C++ version runs.