Create a two-dimensional dataset '/myDataset3' that is unlimited along the second dimension. ChunkSize must be specified to set any dimension of the dataset to Inf.
If filename does not already exist,
h5create creates it.
If you specify an existing HDF5 file name and a new dataset name,
then h5create will add the new dataset to the
existing HDF5 file.
ds — Dataset name character vector | string scalar
Dataset name, specified as a character vector or string scalar containing
the full path name of the dataset to be created. If you specify intermediate
groups in the dataset name and they did not previously exist, then
h5create creates them.
sz — Dataset size row vector
Dataset size, specified as a row vector. To specify an unlimited
dimension, specify the corresponding element of sz as
Inf.
Name-Value Pair Arguments
Specify optional
comma-separated pairs of Name,Value arguments. Name is
the argument name and Value is the corresponding value.
Name must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
Datatype of the dataset, specified as the comma-separated pair
consisting of 'Datatype' and any of the following
MATLAB® datatypes.
'double'
'single'
'uint64'
'int64'
'uint32'
'int32'
'uint16'
'int16'
'uint8'
'int8'
'string'
'ChunkSize' — Chunk size row vector
Chunk size, specified as the comma-separated pair consisting of
'ChunkSize' and a row vector containing the
dimensions of the chunk. The length of 'ChunkSize'
must equal the length of the dataset size sz.
ChunkSize must be specified to set any dimension
in sz to Inf.
'Deflate' — gzip compression level 0 (default) | numeric value
gzip compression level, specified as a numeric
value between 0 and 9, where 0 is the lowest compression level and 9 is
the highest.
'FillValue' — Fill value for missing data 0 (default) | numeric value
Fill value for missing data in numeric datasets.
FillValue must be a numeric value.
'Fletcher32' — 32-bit Fletcher checksum filter false or
0 (default) | true or 1
32-bit Fletcher checksum filter, specified as the comma-separated pair
consisting of 'Fletcher32' and a numeric or logical 1 (true) or 0
(false). A Fletcher checksum filter is designed to verify that the
transferred data in a file is error-free.
'Shuffle' — Shuffle filter false or
0 (default) | true or 1
Shuffle filter, specified as the comma-separated pair consisting of
'Shuffle' and a numeric or logical
1 (true) or
0 (false). A shuffle filter is
an algorithm designed to improve the compression ratio by rearranging
the byte order of data stored in memory.
'TextEncoding' — Text Encoding 'UTF-8' (default) | 'system'
Text encoding, specified as the comma-separated pair consisting of
'TextEncoding' and one of these values:
'UTF-8' — Represent characters using
UTF-8 encoding.
'system' — Represent characters as
bytes using the system encoding (not recommended).
Limitations
h5create does not support creating files stored remotely in
HDFS™.
Chunk storage refers to a method of storing a dataset in memory by dividing it
into smaller pieces of data known as "chunks". Chunking a dataset can improve
performance when operating on a subset of the dataset, since the chunks can be read
and written to the HDF5 file individually.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.