Split a column data into multiple columns
Afficher commentaires plus anciens
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.
Réponses (2)
malladi siva kumari
le 21 Oct 2019
2 votes
a=1:1000
a=reshape(a,5,200)
1 commentaire
Walter Roberson
le 21 Oct 2019
This puts the first 5 as the first column not the first row as required for this purpose
Walter Roberson
le 4 Juin 2019
Rows_of_5 = reshape(YourVariable, 5, []).';
1 commentaire
Abdul Ghaffar
le 5 Juin 2019
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!