cdflib.getNumgAttributes
具有全局作用域的属性的数目
语法
ngatts = cdflib.getNumgAttributes(cdfId)
说明
ngatts = cdflib.getNumgAttributes(cdfId)
返回常用数据格式 (CDF) 文件中全局属性的总数。cdfId
标识 CDF 文件。
示例
打开示例 CDF 文件并确定文件中全局属性的数目:
cdfId = cdflib.open("example.cdf"); % Determine the number of global attributes in the file numgAttrs = cdflib.getNumgAttributes(cdfId)
numgAttrs = 3
% Clean up cdflib.close(cdfId) clear cdfId