A problem about drawing a 3D figure from series of 2D figures
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everyone, I have a problem that can't solve for a long time: I have a series of 2d figures like these:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191893/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191894/image.jpeg)
Which means, I have X,Y coordinates, and for every [x,y] there is a value z which shows in color like above. But there is NO function/formula between x, y, and z. So now I want combine these 2D figures to become a 3D one, like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191895/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191896/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191897/image.jpeg)
or this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191898/image.jpeg)
Which means: In this new 3D figure, every 2D figure is a slice. It shows how figure changes along with time. And it would be great if we can interpolate between 2D slices in this new 3D figure.
Can anyone teach me how? Many thanks.
댓글 수: 3
Unai San Miguel
2018년 7월 13일
I guess the solution will be in the docs for Volume visualization , and assigning some (arbitrary?) values for your Z (time?) coordinate... But I don't like (and always interpret wrongly) the meshgrid-like ordering.
답변 (0개)
참고 항목
카테고리
Help Center 및 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!