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.iterate

Iterate over properties in property list

Syntax

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

Description

[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.

Was this topic helpful?