Is it possible to get the exact 2D image of the CData matrix of surf plot?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a matlab 3D plot(attached figure). I want to extract the 2D image from the surf plot of matlab like this:
![fd45_az0.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207602/fd45_az0.jpeg)
is it possible?
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 3월 9일
The X data in the graphics object is irregularly spaced, forming a sine wave. Therefore we cannot simply take the ZData or CData properties and build a matrix from there.
You will need to getframe() the axes and write that to file.
Alternately if you use export_fig from the File Exchange then it can write more directly to file.
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!