How to plot Heat in 3D cartesian plane.

I have a 3D cartesian space. And I have a variable with respect to (x,y,z) say for ex. heat in a particular point. How do I show the variation using matlab?

댓글 수: 3

John D'Errico
John D'Errico 2019년 6월 17일
So you have a 4 variable problem. You need to buy one of the new 4-dimensional holographic monitors. They are not cheap, but well worth the price. Mine is down for repairs, waiting on parts from StarFleet command. Inter-galactic shipping can be so slow.
Or, you can use tools like isosurface, essentially a level surface like a contour plot. My preference is the holographic monitor. Now if those parts would just arrive.
Sankararaman K
Sankararaman K 2019년 6월 18일
Hey John, firstly I thank you for your quick response but I think I found something that's usefull. Surf with the colormap could do the trick as I wanted to show the variation of heat within a cube.
Ali Daher
Ali Daher 2023년 1월 25일
how did you convert the z and color vectors into matrices (as required by the surf function?)

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

답변 (1개)

KSSV
KSSV 2019년 6월 18일

1 개 추천

Let (x,y,z) be your data.
m = 100; n = 100 ;
xi = linspace(min(x),max(x),m) ;
yi = linspace(min(y),max(y),n) ;
[X,Y] = meshgrid(xi,yi) ;
Z = griddata(x,y,z,X,Y) ;
figure
pcolor(X,Y,Z) ; shading interp ; colorbar
figure
surf(X,Y,Z) ; shading interp ; colorbar

카테고리

도움말 센터File Exchange에서 Vector Fields에 대해 자세히 알아보기

질문:

2019년 6월 17일

댓글:

2023년 1월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by