cdflib.getNumAttributes
具有可变范围的属性的数目
语法
numAtts = cdflib.getNumAttributes(cdfId)
说明
numAtts = cdflib.getNumAttributes(cdfId)
返回常用数据格式 (CDF) 文件中具有可变范围的属性的总数。cdfId
标识 CDF 文件。
示例
打开示例 CDF 文件并确定文件中具有可变范围的属性的数目:
cdfId = cdflib.open("example.cdf"); % Determine the number of attributes with variable scope numAttrs = cdflib.getNumAttributes(cdfId)
numAttrs = 1
% Clean up cdflib.close(cdfId) clear cdfId