How to reshape/transform matrices with 3D data?
이전 댓글 표시

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
John D'Errico
2017년 7월 6일
help meshgrid
help ndgrid
help reshape
James Tursa
2017년 7월 6일
Pleas provide a small example of inputs and outputs.
Manuela Gräfe
2017년 7월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!