Main Content

matlab.io.hdf4.sd.idType

Namespace: matlab.io.hdf4.sd

Type of object

Syntax

objtype = idType(objID)

Description

objtype = idType(objID) returns the type of object that objID represents. Possible values for objtype are:

'NOT_SDAPI_ID'The object is not an HDF SD identifier.
'SD_ID'The object is an SD identifier (file handle).
'SDS_ID'The object is a dataset identifier.
'DIM_ID'The object is a dimension identifier.

This function corresponds to the SDidtype function in the HDF library C API.

Examples

import matlab.io.hdf4.*
sdID = sd.start('sd.hdf');
objType = sd.idType(sdID);
sd.close(sdID);