how to split a column into many equal columns
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
nadia nadi
le 14 Oct 2016
Réponse apportée : Image Analyst
le 14 Oct 2016
dear
I have a column of say 200x2 and I need to split into four columns of 50x2 to create a matrix size 50x8. I need to write it in general because I have many cases like a column of 1000x2 and so on. can anyone give me an idea.
many thanks,
Nadia,
0 commentaires
Réponse acceptée
Image Analyst
le 14 Oct 2016
Try this:
newMatrix = reshape(originalMatrix, [], desiredNumberOfColumns);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!