Problem in meshgrid and slice (volume data plotting)

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

KSSV
KSSV 2020년 7월 17일
What error you got?
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개)

카테고리

질문:

2020년 7월 17일

댓글:

2020년 8월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by