Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5P.fill_value_defined

Determine if fill value is defined

Syntax

fvstatus = H5P.fill_value_defined(plist_id)

Description

fvstatus = H5P.fill_value_defined(plist_id) determines whether a fill value is defined in the dataset creation property list plist_id. The fvstatus output can have any of the following values: H5D_FILL_VALUE_UNDEFINED, H5D_FILL_VALUE_DEFAULT, or H5D_FILL_VALUE_USER_DEFINED.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/float');
dcpl = H5D.get_create_plist(dset_id);
fvstatus = H5P.fill_value_defined(dcpl);
switch(fvstatus)
    case H5ML.get_constant_value('H5D_FILL_VALUE_UNDEFINED')
        fprintf('fill value undefined\n');
    case H5ML.get_constant_value('H5D_FILL_VALUE_DEFAULT')
        fprintf('fill value set to default\n');
    case H5ML.get_constant_value('H5D_FILL_VALUE_USER_DEFINED')
        fprintf('fill value is user defined\n');
end
Was this topic helpful?