How to Reshape matrix.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
Say i have a 1x365 matrix. How would i create a matrix of 24x365 where the data from the initial matrix column (1x365) would be propagated down the entire column in the second matrix (24x365).
cheers
2 comentarios
Thomas
el 18 de Sept. de 2012
A 1x365 array has 365 elements, how could you reshape it to 24X365 matrix of 8760 elements? reshape needs the two matrices to have the same number of elements. Do you intend to pad you matrix with zeros?
Respuesta aceptada
Walter Roberson
el 18 de Sept. de 2012
Editada: Walter Roberson
el 18 de Sept. de 2012
repmat(YourMatrix, 24, 1)
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices 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!