| Contents | Index |
name = cdflib.getName(cdfId)
name = cdflib.getName(cdfId) returns the name of the CDF file identified by cdfId.
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 cdfIdThis function corresponds to the CDF library C API routine CDFgetName. To use these functions, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site. For copyright information, see the cdfcopyright.txt file.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |