how to draw a temperature distribution on (x,y,z)?

조회 수: 2 (최근 30일)
D 2013년 6월 2일
댓글: Zahra 2019년 6월 24일
I have 3 coordinates x,y,z. For each x,y,z I have a corresponding temperature t. How can I draw it in matlab to get a "smooth" graph as in the below matlab example?
  댓글 수: 1
Zahra 2019년 6월 24일
I have the same problem. If you have found a solution let me know.

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

답변 (1개)

Amith Kamath
Amith Kamath 2013년 6월 2일
The image you have attached was generated using:
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
daspect([5 5 1])
axis tight
camlight left
You can replace 'Z' here with the temperature data you have.
  댓글 수: 2
D 2013년 6월 3일
thanks Amith
but Z is a third coordinate, not temperature. where do I put variable T?
mechE 2018년 2월 3일
did you find a solution to your problem If yes,Please let me know

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


Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by