Transpose matrix and then predetermine rows
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi
I have a data spreadsheet in Excel that consists of 1 column and 8760 rows. This is raw hourly temperature readings over a one year period.
I want to use Matlab to convert the 8760 row x 1 column to a 365 row x 24 hour column.
I have tried to transpose the matrix but I can only get it to give me 1 row and 8760 columns.
How can I get it to change row every 24 readings.
Thanks
0 comentarios
Respuesta aceptada
Sean de Wolski
el 7 de Jul. de 2011
doc reshape;
Data = reshape(x, [24,365])'; %reshape and then transpose
0 comentarios
Más respuestas (1)
James Tursa
el 7 de Jul. de 2011
A = your original column vector;
B = reshape(A,24,365).'
0 comentarios
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!