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.


Iterate over properties in property list


[output,idx_out] = H5P.iterate(id,idx_in,iter_func)


[output,idx_out] = H5P.iterate(id,idx_in,iter_func) executes the operation iter_func on each property in the property object specified in id. The id input can be a property list or a property class. idx_in specifies the index of the next property to be processed. output is the value returned by the last call to iter_func. idx_out is the index of the last property processed. iter_func is a function handle.

The iterator function must have the following signature:

status = iter_func(id,prop_name)

id still identifies the property object passed into H5P.iterate, but name identifies the name of the current property.