How do I take diagonal Slices?

23 visualizaciones (últimos 30 días)
Morgan Brown
Morgan Brown el 8 de Jun. de 2020
Respondida: darova el 12 de Jun. de 2020
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?

Respuestas (1)

darova
darova el 12 de Jun. de 2020
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

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by