what is the "count" mean?
조회 수: 6 (최근 30일)
이전 댓글 표시
hi
What do these commands do? please
what is "count"?
[v1,count]=fscanf(fid,'%f',[2,numpt]);
fclose(fid);
v1=v1';
code=v1(:,2);
code_count=zeros(1,2^numbit);
댓글 수: 0
답변 (1개)
KSSV
2021년 11월 18일
편집: KSSV
2021년 11월 18일
[v1,count]=fscanf(fid,'%f',[2,numpt]); % reading data from the file into 2 rows and numpt coulmns; count gives you total numbers read into v1
fclose(fid); % closing the file
v1=v1'; % transpose
code=v1(:,2); % pick second column
code_count=zeros(1,2^numbit);
Check numel(v1) and count, they should be equal.
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!