Reading Multiple lines space separated data.

4 visualizaciones (últimos 30 días)
Rinkle Sebastian
Rinkle Sebastian el 5 de Oct. de 2021
Editada: Timothy el 5 de Oct. de 2021
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 comentario
Timothy
Timothy el 5 de Oct. de 2021
Editada: Timothy el 5 de Oct. de 2021
You can use readmatrix (www.mathworks.com/help/matlab/ref/readmatrix.html) and specify the delimiter as ' ' (space).

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 5 de Oct. de 2021

Más respuestas (0)

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by