Problem in meshgrid and slice (volume data plotting)
4 views (last 30 days)
Show older comments
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 Comments
Daniel
on 17 Aug 2020
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.
Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!