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
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 Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!