I need a script to export data from Matlab to HDF4 format. The variable which I want to store in hdf4 file has dimensions 3128*242*256 (int 16 type).
Thanks
I need a script to export data from Matlab to HDF4 format. The variable which I want to store in hdf4 file has dimensions 3128*242*256 (int 16 type).
Thanks
use following routines:
x = ones (3128, 242, 256) ;
hdf5write ('file path', 'dataset name' , x )
Above code will create hdf5 file and containing a dataset having 3D matrix containing values 1.