dealy in reading matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi all,
I need some way to read each row of a matrix every real second, pls help
Thanks
2 comentarios
Jan
el 18 de En. de 2021
Where is this matrix stored in which format? "Read each row" is not clear enough yet.
Ive J
el 18 de En. de 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
end
If it's stored in a text file, you can read it by readmatrix. Otherwise for I/O, see fgetl.
Respuestas (0)
Ver también
Categorías
Más información sobre Other Formats en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!