cdflib.getAttrgEntry
전역 특성 항목의 값
구문
value = cdflib.getAttrgEntry(cdfId,attrNum,entryNum)
설명
value = cdflib.getAttrgEntry(cdfId,attrNum,entryNum)
은 CDF(Common Data Format) 파일에서 전역 특성 항목의 값을 반환합니다.
입력 인수
|
CDF 파일 ID로, |
|
특성을 식별하는 숫자형 값입니다. 특성 번호는 0부터 시작합니다. 이 특성의 범위는 전역적이어야 합니다. |
|
특성 항목을 지정하는 숫자형 값입니다. 항목 번호는 0부터 시작합니다. |
출력 인수
|
항목의 값입니다. |
예제
예제 CDF를 연 다음 해당 파일에서 전역 특성에 대한 항목의 값을 가져옵니다.
cdfId = cdflib.open("example.cdf"); % All of the first three attributes have global scope attrscope = cdflib.getAttrScope(cdfId,0)
attrscope = 'GLOBAL_SCOPE'
% Get information about the first entry for global attribute
[dtype,numel] = cdflib.inquireAttrgEntry(cdfId,0,0)
dtype = 'cdf_char' numel = 23
% Get the value of the first entry for this global attribute
value = cdflib.getAttrgEntry(cdfId,0,0)
value = 'This is a sample entry.'
% Clean up cdflib.close(cdfId) clear cdfId
참고 문헌
이 함수는 CDF 라이브러리 C API 루틴 CDFgetAttrgEntry
에 대응합니다.
이 함수를 사용하려면 CDF C 인터페이스를 잘 알고 있어야 합니다. CDF 웹사이트에서 CDF 문서에 액세스할 수 있습니다.