matlab.io.hdf4.sd.select
Package: matlab.io.hdf4.sd
Identifier of data set with specified index
Syntax
sdsID = select(sdID,IDX)
Description
sdsID = select(sdID,IDX)
returns the identifier
of the data set specified by its index.
This function corresponds to the SDselect
function
in the HDF C library.
Examples
import matlab.io.hdf4.* sdID = sd.start('sd.hdf','read'); idx = sd.nameToIndex(sdID,'temperature'); sdsID = sd.select(sdID,idx); sd.endAccess(sdsID); sd.close(sdID);