| Contents | Index |
h5create(filename,datasetname,size,Name,Value)
h5create(filename,datasetname,size,Name,Value) creates an HDF5 data set in the file specified by filename.
Specify optional comma-separated pairs of Name,Value arguments, where Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.
'Datatype' |
Any of the following MATLAB datatypes.
Default: double | ||||||||||
'ChunkSize' |
Defines chunking layout. Default: Not chunked | ||||||||||
'Deflate' |
Defines gzip compression level (0-9). Default: 0 | ||||||||||
'FillValue' |
Defines the fill value for numeric data sets. | ||||||||||
'Fletcher32' |
Turns on the Fletcher32 checksum filter. Default: false | ||||||||||
'Shuffle' |
Turns on the Shuffle filter. Default: false |
Create a fixed-size 100-by-200 data set.
h5create('myfile.h5','/myDataset1',[100 200]);
h5disp('myfile.h5');Create a single-precision 1000-by-2000 data set with a chunk size of 50-by-80. Apply the highest level of compression.
h5create('myfile.h5','/myDataset2',[1000 2000], 'Datatype','single', ...
'ChunkSize',[50 80],'Deflate',9);
h5disp('myfile.h5');Create a two-dimensional data set that is unlimited along the second extent.
h5create('myfile.h5','/myDataset3',[200 Inf],'ChunkSize',[20 20]);
h5disp('myfile.h5');h5disp | h5info | h5read | h5write

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |