Problem in meshgrid and slice (volume data plotting)

4 次查看(过去 30 天)
i have data in 21 x 9 x 10 matrix.
i want to plot them into 3D- block diagram. volume data visualization.
when i tried x= 100 : 10 : 300, y= 1: 9 , z=1:10 and
[X,Y,Z]=meshgrid(x,y,z)
X Y Z is 9 x21 x 10
so when i try 'slice' function like slice(X,Y,Z,data,xslice~) i got error..
  2 个评论
Daniel
Daniel 2020-8-17
I have a similar issue. I can't seem to figure out to create a meshgrid that conforms to existing data. Or, more precisely, I can, but then the plot I'm trying to make doesn't display anything. To get X, Y, and Z to be the same the same size as the data (I'm using streamtube, but it could be many functions), I need to use meshgrid(z,x,y). That allows the streamtube function to run without error, but the plot is empty. For me, I want this so that the axes of the plot represent the physical dimensions of my data so I can determine some things about the physical size of the output of streamtube since streamtube doesn't have any outputs that you can interrogate.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by