How do I reshape a dataset?
Mostrar comentarios más antiguos
I have a 288x35 dataset, how do I make it into 35x288?
Respuestas (2)
a= rand (2,4)
size(a)
b=a'
size(b)
Is this what you are looking for ?
or
b= reshape(a,4,[]);
in your case
reshape(a,35,[])
if a is 288x35
Wayne King
el 14 de Feb. de 2014
Editada: Wayne King
el 14 de Feb. de 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 comentarios
andrew
el 14 de Feb. de 2014
Wayne King
el 14 de Feb. de 2014
If you are talking about numerical data of size 288x35, then assume the data are called data
data = data';
andrew
el 14 de Feb. de 2014
Categorías
Más información sobre Managing Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!