Plot 3D figure from a pcolor figure

Hello,
I have generated a figure by using "pcolor" to see the propagation of laser into plasma (as shown in below figure). The laser is specified by color such as read, blue,... The green color shows the plasma
But the case is I want to plot a 3D figure from this "pcolor" figure to see the real behaviour of laser inside plasma .
Therefore, I wonder is there anyone having any idea on that?
Thank you very much.

답변 (1개)

Sai Bhargav Avula
Sai Bhargav Avula 2020년 2월 19일

1 개 추천

Hi,
This is totally dependent on the data you want to visualize. For 3D visualization of your data, functions like surf is very handy. You can also use https://www.mathworks.com/matlabcentral/fileexchange/37268-3d-volume-visualization , which provides an interactive 3D volume visualization.
Hope this helps!

댓글 수: 3

dang khoa tran
dang khoa tran 2020년 2월 19일
Thank you for your reply.
When using "surf", the requirement is the data of x, y and z axis. But actually from "pcolor", there are no output data created.
So maybe I need to find another approach. Do you have any idea?
Sai Bhargav Avula
Sai Bhargav Avula 2020년 2월 19일
편집: Sai Bhargav Avula 2020년 2월 20일
can you give more details about what you mean by "I want to plot a 3D figure from this "pcolor" figure to see the real behaviour of laser inside plasma".
If you just want to shift the pcolor in the 3rd dimension for better visulization. This can be achieved by changing the ZData surface property of the pcolor like
plt = pcolor('youdata');
plt.ZData = 'yourvalue';
for other Surface properties you can refer to the link
dang khoa tran
dang khoa tran 2020년 2월 19일
Wow. Let me try.
Thank you. Can I still ask you if I met any problems?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2020년 2월 15일

편집:

2020년 2월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by