dealy in reading matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi all,
I need some way to read each row of a matrix every real second, pls help
Thanks
댓글 수: 2
Jan
2021년 1월 18일
Where is this matrix stored in which format? "Read each row" is not clear enough yet.
Ive J
2021년 1월 18일
If your matrix is already in workspace (which I doubt):
for i = 1:size(A, 1)
myRow = A(i, 1);
pause(1) % 1 sec delay
% do blah blah
end
If it's stored in a text file, you can read it by readmatrix. Otherwise for I/O, see fgetl.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!