How do I reshape a dataset?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a 288x35 dataset, how do I make it into 35x288?
0 commentaires
Réponses (2)
Wayne King
le 14 Fév 2014
Modifié(e) : Wayne King
le 14 Fév 2014
When you say dataset, do you just mean a matrix?
X = randn(288,35);
Y = X.';
If the elements are all real-valued, just
Y = X';
or do you mean the transpose of a MATLAB dataset?
3 commentaires
Wayne King
le 14 Fév 2014
If you are talking about numerical data of size 288x35, then assume the data are called data
data = data';
Voir également
Catégories
En savoir plus sur Cell Arrays 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!