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 property list is member of class


output = H5P.isa_class(plist_id, pclass_id)


output = H5P.isa_class(plist_id, pclass_id) returns a positive number if the property list specified by plist_id is a member of the class specified by pclass_id, zero if it is not, and a negative value to indicate an error.


 fid ='example.h5');
 fcpl = H5F.get_create_plist(fid);
 if H5P.isa_class(fcpl,'H5P_FILE_ACCESS')
     fprintf('fcpl is a file access property list\n');
     fprintf('fcpl is not a file access property list\n');