Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

cdflib.getName

Name of Common Data Format (CDF) file

Syntax

name = cdflib.getName(cdfId)

Description

name = cdflib.getName(cdfId) returns the name of the CDF file identified by cdfId.

Examples

Open the example CDF file and get the name of the file. The path name returned for your installation will be different.

cdfId = cdflib.open('example.cdf');

name = cdflib.getName(cdfId)

name =

yourinstallation\matlab\toolbox\matlab\demos\example

% Clean up
cdflib.close(cdfId)

clear cdfId

References

This function corresponds to the CDF library C API routine CDFgetName.

To use this function, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF website.

For copyright information, see the cdfcopyright.txt file.

Was this topic helpful?