Main Content

cdflib.getAttrMaxgEntry

전역 특성의 마지막 항목 번호

구문

maxEntry = cdflib.getAttrMaxgEntry(cdfId,attrNum)

설명

maxEntry = cdflib.getAttrMaxgEntry(cdfId,attrNum)은 CDF(Common Data Format) 파일에서 전역 특성의 마지막 항목 번호를 반환합니다.

입력 인수

cdfId

CDF 파일 ID로, cdflib.create 또는 cdflib.open 호출에서 반환됩니다.

attrNum

특성을 식별하는 숫자형 값입니다. 특성 번호는 0부터 시작합니다. 이 특성의 범위는 전역적이어야 합니다.

출력 인수

maxEntry

특성의 마지막 항목 번호입니다. 항목 번호는 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

참고 문헌

이 함수는 CDF 라이브러리 C API 루틴 CDFgetAttrMaxgEntry에 대응합니다.

이 함수를 사용하려면 CDF C 인터페이스를 잘 알고 있어야 합니다. CDF 웹사이트에서 CDF 문서에 액세스할 수 있습니다.