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

5 views (last 30 days)
D on 2 Jun 2013
Commented: Zahra on 24 Jun 2019
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 Comment
Zahra on 24 Jun 2019
I have the same problem. If you have found a solution let me know.

Sign in to comment.

Answers (1)

Amith Kamath
Amith Kamath on 2 Jun 2013
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.
mechE on 3 Feb 2018
did you find a solution to your problem If yes,Please let me know

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!