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