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 if fill value is defined


fvstatus = H5P.fill_value_defined(plist_id)


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.


fid ='example.h5');
dset_id =,'/g3/float');
dcpl = H5D.get_create_plist(dset_id);
fvstatus = H5P.fill_value_defined(dcpl);
    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');