Intersection between a sphere x^2+y^2+z^2 =6 and paraboloid z=x^2+y^2

6 ビュー (過去 30 日間)
F.O
F.O 2017 年 10 月 5 日
回答済み: KSSV 2017 年 10 月 6 日
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.

採用された回答

KSSV
KSSV 2017 年 10 月 6 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by