How do I take diagonal Slices?

25 ビュー (過去 30 日間)
Morgan Brown
Morgan Brown 2020 年 6 月 8 日
回答済み: darova 2020 年 6 月 12 日
How do I produce slices through the volume? I know you can make slices that are orthogonal to the axes but how do I take slices that are not orthogonal? For example, how do I take a diagonal slice?

回答 (1 件)

darova
darova 2020 年 6 月 12 日
just create a surface you want to get slice on
[x,y,z,v] = flow;
[x1,y1] = meshgrid(0:10,-3:0.5:3);
z1 = (x1 + y1)/2-2;
slice(x,y,z,v,x1,y1,z1)
hold on
slice(x,y,z,v,[2 7],[],[])
slice(x,y,z,v,[],0,[])
hold off
axis vis3d

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by