Programming Previous page   Next Page

Using the MATLAB HDF Utility API

In addition to the standard HDF APIs, listed in Using HDF5 Data Type Objects, MATLAB supports utility functions that are designed to make using HDF in the MATLAB environment easier.

For example, the MATLAB HDF utility API includes a function, MLlistinfo, that you can use to view all types of open HDF identifiers, such as HDF SD file identifiers. MATLAB updates these lists whenever HDF identifiers are created or closed.

This code obtains a list of all open HDF file and data set identifiers, using the MLlistinfo function. In this example, only two identifiers are open:

Closing All Open HDF Identifiers

To close all open HDF identifiers in a single call, use the MLcloseall function. This call closes all open HDF identifiers:


Previous page  Example: Exporting Data to an HDF4 File Using Low-Level File I/O Functions Next page

© 1994-2005 The MathWorks, Inc.