Main Content
matlab.io.hdf4.sd.getCal
Namespace: matlab.io.hdf4.sd
Dataset calibration information
Syntax
[cal,calErr,offset,offsetErr,datatype] = getCal(sdsID)
Description
[cal,calErr,offset,offsetErr,datatype] = getCal(sdsID)
retrieves the
calibration information associated with a dataset.
This function corresponds to the SDgetcal
function
in the HDF library C API.
Examples
import matlab.io.hdf4.* sdID = sd.start('sd.hdf'); idx = sd.nameToIndex(sdID,'temperature'); sdsID = sd.select(sdID,idx); [cal,calErr,offset,offsetErr,dtype] = sd.getCal(sdsID); sd.endAccess(sdsID); sd.close(sdID);