Problem in meshgrid and slice (volume data plotting)

4 vues (au cours des 30 derniers jours)
Minsik Km
Minsik Km le 17 Juil 2020
Commenté : Daniel le 17 Août 2020
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 commentaires
KSSV
KSSV le 17 Juil 2020
What error you got?
Daniel
Daniel le 17 Août 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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by