I want to know how to plot the intersection of a 3D picture with a plane.
For example, my matlab code is
x=-10:0.1:10;
y=x;
[x,y]=meshgrid(x,y);
z=1-5*x.^2+3*y.^2+7*x.*y+4*x-9*y;
mesh(x,y)
I want to look at the intersecting line with z=c or z=ax+by(c,a,b are constant)
what matlab code can implement?
Best Answer