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.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!