Intersection between a sphere x^2+y^2+z^2 =6 and paraboloid z=x^2+y^2
5 次查看(过去 30 天)
显示 更早的评论
I want to draw both sphere x^2+y^2+z^2=6 and paraboloid z=x^2+y^2 in 3D to determine the integration region that is the solid region inside the sphere and above the paraboloid. I tried
[x,y,z] = sphere; surf(x*sqrt(6), y*sqrt(6), z*sqrt(6));
axis equal;
hold on
x=[-2.5:1:2.5]
y=[-2.5:1:2.5]
[x,y]=meshgrid(x,y)
meshc(x.^2+y.^2,x,y)
axis equal;
but i don't get the correct drawing and the paraboloid is got drawn outside the sphere.
0 个评论
采纳的回答
KSSV
2017-10-6
Your plot is fine.....check this for intersection. https://in.mathworks.com/matlabcentral/answers/93623-how-do-i-plot-the-line-of-intersection-between-two-surfaces
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!