Reading Multiple lines space separated data.

I have a data of 4000 rows, each row has three numbers separated by a space, how can I read and store them into an array.
Eg.
1 2 3
8 9 1
2 4 6
: : : so on for 4000 rows. Store each number separately and into 4000*3 sized array

1 件のコメント

Timothy
Timothy 2021 年 10 月 5 日
編集済み: Timothy 2021 年 10 月 5 日
You can use readmatrix (www.mathworks.com/help/matlab/ref/readmatrix.html) and specify the delimiter as ' ' (space).

サインインしてコメントする。

その他の回答 (0 件)

製品

リリース

R2021a

タグ

質問済み:

2021 年 10 月 5 日

編集済み:

2021 年 10 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by