cdflib.getVarMaxWrittenRecNum
변수에 작성된 최대 레코드 번호(Maximum Written Record Number)
구문
maxrec = cdflib.getVarMaxwrittenRecNum(cdfId,varNum)
설명
은 CDF(Common Data Format) 파일의 변수에 작성된 최대 레코드의 레코드 번호를 반환합니다. maxrec = cdflib.getVarMaxwrittenRecNum(cdfId,varNum)
cdfId는 CDF 파일을 식별합니다. varNum은 변수를 식별하는 숫자형 값입니다. 변수 번호와 레코드 번호는 0부터 시작합니다.
예제
예제 CDF를 연 다음 변수에 작성된 최대 레코드 개수를 확인합니다.
cdfId = cdflib.open("example.cdf"); % Determine the number records written to variable numRecs = cdflib.getVarNumRecsWritten(cdfId,0)
numRecs =
24% Determine the maximum record number of the records written
maxRecNum = cdflib.getVarMaxWrittenRecNum(cdfId,0)maxRecNum =
23% Clean up cdflib.close(cdfId) clear cdfId
팁
이 함수는 CDF 라이브러리 C API 루틴
CDFgetzVarMaxWrittenRecNum에 대응합니다.이 함수를 사용하려면 CDF C 인터페이스를 잘 알고 있어야 합니다. CDF 웹사이트에서 CDF 문서에 액세스할 수 있습니다.