matlab.io.hdf4.sd.start
Namespace: matlab.io.hdf4.sd
Open HDF file and initialize SD interface
Syntax
sdID = start(filename)
sdID = start(filename,access)
Description
sdID = start(filename) opens the file filename in
read-only mode. This routine must be called for each file before any
other sd calls can be made on that file.
sdID = start(filename,access) opens the file filename
with the access mode specified by access. This routine must be called
before any other SD interface operations can be made on that file. Specify
access as one of these values:
'read''write''create'
access defaults to 'read' if
not supplied.
This function corresponds to the SDstart function
in the HDF library C API.
Examples
import matlab.io.hdf4.* sdID = sd.start('sd.hdf'); sd.close(sdID);