FUNCTION REFERENCE
h5create
Create an HDF5 dataset.
Create an HDF5 dataset.
Syntax
h5create(filename, ds, sz)Syntax
h5create(filename, ds, sz, Name, Value)Creates the file when it does not exist and any missing groups on the path. sz is the MATLAB size (stored reversed, as h5write and h5read expect). Options: 'Datatype' ('double' default, 'single' or an integer class), 'ChunkSize' (one value per dimension, required by 'Deflate'), 'Deflate' (0 to 9) and 'FillValue'. Creating a dataset that exists is an error.
Example
h5create('out.h5', '/results/x', [100 3], 'Datatype', 'single')Differences from MATLAB: No unlimited (Inf) dimensions, no 'Fletcher32', 'Shuffle', 'TextEncoding' or 'CustomFilter' options, and no string datasets. A chunk is limited to 8 MiB. Not in the browser build.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.