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

6 visualizaciones (últimos 30 días)
D
D el 2 de Jun. de 2013
Comentada: Zahra el 24 de Jun. de 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 comentario
Zahra
Zahra el 24 de Jun. de 2019
I have the same problem. If you have found a solution let me know.

Iniciar sesión para comentar.

Respuestas (1)

Amith Kamath
Amith Kamath el 2 de Jun. de 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;
figure
surf(X,Y,Z,'FaceColor','interp',...
'EdgeColor','none',...
'FaceLighting','phong')
daspect([5 5 1])
axis tight
view(-50,30)
camlight left
You can replace 'Z' here with the temperature data you have.
  2 comentarios
D
D el 3 de Jun. de 2013
thanks Amith
but Z is a third coordinate, not temperature. where do I put variable T?
mechE
mechE el 3 de Feb. de 2018
did you find a solution to your problem If yes,Please let me know

Iniciar sesión para comentar.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by