how ro make a cross section for a meshplot
6 views (last 30 days)
Show older comments
Ayoub Mchayaa
on 15 Jan 2018
Answered: Darshan Ramakant Bhat
on 18 Jan 2018
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')
0 Comments
Accepted Answer
Darshan Ramakant Bhat
on 18 Jan 2018
The following MATLAB answer posts discusses about the similar issue:
I hope this will help you.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!