Slice plot from excel sheet conatining x, y, z and temeprature at each points in volume. the points are not in grid format.

1 次查看(过去 30 天)
I would like to plot volume and slice plot form a excel sheet which has x, y, z and temperature at coordinates in column 1 to 4. the No of rows are 1000 same as no. of points. Please provide your thoughts for generating slice plot at particular z coordinates.

回答(1 个)

Image Analyst
Image Analyst 2014-9-19
编辑:Image Analyst 2014-9-19
You have a bunch of temperatures scattered around a 3D volume. You don't have temperatures for every single x,y,z in that volume, but you'd like to have that, so that you can get a plane in the x-y plane that is at a particular z height. So you need to build your solid 3D volume. For that you can use the scatteredInterpolant() class . This will give you a regular grid - a 3D array with temperatures at every single x,y,z location. Then you can extract a slice at some chosen z value like this:
xy2DSlice = array3d(:,:,z); % You tell it what z you want.

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by