dealy in reading matrix

2 views (last 30 days)
Oday Shahadh
Oday Shahadh on 18 Jan 2021
Commented: Ive J on 18 Jan 2021
Hi all,
I need some way to read each row of a matrix every real second, pls help
Ive J
Ive J on 18 Jan 2021
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
If it's stored in a text file, you can read it by readmatrix. Otherwise for I/O, see fgetl.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!