This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Determine layout of raw data for dataset


layout = H5P.get_layout(dcpl)


layout = H5P.get_layout(dcpl) returns the layout of the raw data for the dataset specified by the dataset creation property list, dcpl. Possible values are: H5D_COMPACT, H5D_CONTIGUOUS, or H5D_CHUNKED.


fid ='example.h5');
dset_id =,'/g3/integer');
dcpl = H5D.get_create_plist(dset_id);
layout = H5P.get_layout(dcpl);
    case H5ML.get_constant_value('H5D_COMPACT')
        fprintf('layout is compact\n');
    case H5ML.get_constant_value('H5D_CONTIGUOUS')
        fprintf('layout is contiguous\n');
    case H5ML.get_constant_value('H5D_CHUNKED')
        fprintf('layout is chunked\n');