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 specified property exists in property list


value = H5P.exist(prop_id,name)


value = H5P.exist(prop_id,name) returns a positive value if the property specified by name exists within the property list or class specified by prop_id. Specify name as a character vector or string scalar.


fid ='example.h5');
fapl = H5F.get_access_plist(fid);
if H5P.exist(fapl,'sieve_buf_size')
    fprintf('sieve buffer size property exists\n');
    fprintf('sieve buffer size property does not exist\n');