how ro make a cross section for a meshplot

6 ビュー (過去 30 日間)
Ayoub Mchayaa
Ayoub Mchayaa 2018 年 1 月 15 日
回答済み: Darshan Ramakant Bhat 2018 年 1 月 18 日
i just ploted a Sphere with a hole and i wanted to make the cross section von x-z axis .here there are the Code of my sphere.
phi=linspace(0.52,2.62,30); theta=linspace(0,2*pi,40); [theta,phi]=meshgrid(theta,phi); rho=2; X=rho*sin(phi).*cos(theta); Y=rho*sin(phi).*sin(theta); Z=rho*cos(phi); mesh(X,Y,Z,'EdgeColor','blue') hold on z=linspace(-sqrt(3),sqrt(3),40); theta=linspace(0,2*pi,40); [z,theta]=meshgrid(z,theta); r=1; x=r.*cos(theta); y=r.*sin(theta); mesh(x,y,z,'EdgeColor','red')

採用された回答

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2018 年 1 月 18 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by