How to reshape/transform matrices with 3D data?
Ältere Kommentare anzeigen

Hello!
I would like to reshape/transform matrices with 3D data (see attached photo). Is there an existing method for this?
Thank you
- - - - - - - - - - - - - - -
Edit:
Initial situation:
X=[1;2;3]; Y=[1,2,3]; Z=[1,2,3;4,5,6;7,8,9];
Target:
X=[1;1;1;2;2;2;3;3;3]; Y=[1;2;3;1;2;3;1;2;3]; Z=[1;2;3;4;5;6;7;8;9];
3 Kommentare
John D'Errico
am 6 Jul. 2017
help meshgrid
help ndgrid
help reshape
James Tursa
am 6 Jul. 2017
Pleas provide a small example of inputs and outputs.
Manuela Gräfe
am 6 Jul. 2017
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!