how to draw a temperature distribution on (x,y,z)?
4 views (last 30 days)
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?
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])
You can replace 'Z' here with the temperature data you have.