フィルターのクリア

dealy in reading matrix

1 回表示 (過去 30 日間)
Oday Shahadh
Oday Shahadh 2021 年 1 月 18 日
コメント済み: Ive J 2021 年 1 月 18 日
Hi all,
I need some way to read each row of a matrix every real second, pls help
Thanks
  2 件のコメント
Jan
Jan 2021 年 1 月 18 日
Where is this matrix stored in which format? "Read each row" is not clear enough yet.
Ive J
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 ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by