cdflib.getAttrMaxgEntry
全局属性的最后一个条目的编号
语法
maxEntry = cdflib.getAttrMaxgEntry(cdfId,attrNum)
说明
maxEntry = cdflib.getAttrMaxgEntry(cdfId,attrNum)
返回常用数据格式 (CDF) 文件中全局属性的最后一个条目的编号。
输入参数
|
CDF 文件的标识符,通过调用 |
|
数值,用于标识属性。属性编号从 0 开始。该属性必须具有全局作用域。 |
输出参量
|
属性中最后一个条目的编号。条目编号从 0 开始。 |
示例
打开示例 CDF 文件,然后获取与该文件中的全局属性关联的最后一个条目的编号。
cdfId = cdflib.open("example.cdf"); % All of the first three attribute are of global scope attrscope = cdflib.getAttrScope(cdfId,0)
attrscope = 'GLOBAL_SCOPE'
% Get the number of the last entry for this attribute
entrynum = cdflib.getAttrMaxgEntry(cdfId,0)
entrynum = 4
% Clean up cdflib.close(cdfId) clear cdfId