Reshaping X, Y, Z Data

27 visualizaciones (últimos 30 días)
Mario
Mario el 28 de Jul. de 2014
Comentada: Mario el 28 de Jul. de 2014
Hi,
I plotted a surface using q = surf(X_New,Y_New,Z_New_2) where X_New and Y_New are both 1x288. Z_New_2 is 288X288. I want to reshape each X_New,Y_New and Z_New_2 into n-by-1 arrays. I'm running into a roadblock with my limited knowledge of Matlab so any help or feedback would be appreciated.
Regards,
Mario

Respuesta aceptada

David Young
David Young el 28 de Jul. de 2014
X_New = X_New(:);
Y_New = Y_New(:);
Z_New_2 = Z_New_2(:);
does what you asked - that is, it reshapes each of the arrays into an n-by-1 array. Is that what you need?
  1 comentario
Mario
Mario el 28 de Jul. de 2014
Yes, thank you very much.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by