Main Content

matlab.io.hdf4.sd.getFilename

Namespace: matlab.io.hdf4.sd

Name of file

Syntax

filename = getFilename(sdID)

Description

filename = getFilename(sdID) retrieves the name of a file previously opened with the sd namespace with identifier sdID.

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

Examples

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