%% Create Dataset with Compression
% Create a single-precision 1000-by-2000 dataset and apply the highest level of compression. Chunk storage must be used when applying HDF5 compression.

h5create('myfile.h5','/myDataset2',[1000 2000],'Datatype','single', ...
          'ChunkSize',[50 80],'Deflate',9)

% Display the contents of the entire HDF5 file.

h5disp('myfile.h5')

% Copyright 2015 The MathWorks, Inc.