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 个评论
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 中查找有关 Other Formats 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!