Split a column data into multiple columns

I have 1000 observations in a column.
I want to convert first 5 element in 1st row
next 5 element in 2nd row and
next 5 in 3rd row and so on....
Please someone told how can I split data.

Respuestas (2)

malladi siva kumari
malladi siva kumari el 21 de Oct. de 2019

2 votos

a=1:1000
a=reshape(a,5,200)

1 comentario

Walter Roberson
Walter Roberson el 21 de Oct. de 2019
This puts the first 5 as the first column not the first row as required for this purpose

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 4 de Jun. de 2019

Comentada:

el 21 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by