I'm a beginner and I don't have much MATLAB expericence, but I'm trying to draw different conic sections in a 3d cone and then extract just the intersection of the plane and the cone in order to highlight the different conics (parabolas, hyperbolas, etc) that are formed? Specifically, how would I simply extract the intersection between a plane and the cone?
It would be especially helpful if answers and code were in a simpler and more understandable format tailored to a beginner like me.
Thanks
Here is my current code
r = linspace(0,2*pi) ;th = linspace(0,2*pi) ;[R,T] = meshgrid(r,th) ;X = R.*cos(T) ;Y = R.*sin(T) ;Z = R;surf(X,Y,Z)patch([2 -2 -2 2], [2 2 -2 -2], [2 2 2 2], [2 2 -2 -2])hold onsurf(-X,-Y,-Z)
Best Answer