Package: matlab.io.hdf4.sd
Terminate access to SD interface
sd.close(sdID)
sd.close(sdID)
closes the file identified
by sdID
.
This function corresponds to the SDend
function
in the HDF C API.
import matlab.io.hdf4.* sdID = sd.start('sd.hdf'); idx = sd.nameToIndex(sdID,'temperature'); sdsID = sd.select(sdID,idx); sd.endAccess(sdsID); sd.close(sdID);