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