How to cut surface plot to 2d image ?
8 views (last 30 days)
I've got my 3D plot from this code
syms x y z
f = @(x,y,z) cos(x) + cos(y) + cos(z);
interval = [-pi:0.1:pi];
a= interval ;
[X,Y,Z] = meshgrid(a,b,c);
data = f(X,Y,Z);
p = patch(isosurface(a,b,c,data,0));
cdata = smooth3(rand(size(data)),'box',7);
p.FaceColor = 'interp';
p.EdgeColor = 'none';
daspect([1 1 1])
And I would like to cut to have a YZ plane cut at Y = 0 to get 2d image for the next step processing (find the size of the pore from this 3d) how can I do that.