section volume by interception between cylinder and sphere?
Afficher commentaires plus anciens
z1=linspace(-1,1,40);
theta=linspace(0,2*pi,40);
[z1,theta]=meshgrid(z1,theta);
r=1;
x1=r*cos(theta);
y1=r*sin(theta);
[x2,y2,z2]=sphere(40);
s1=surf(x1, y1+1, z1, 'FaceColor', [0.5 1.0 0.5]);
s1.FaceAlpha = 0.5;
s2=surface(x2, y2-1/2, z2, 'FaceColor', [1.0 0.5 0.0]);
s2.FaceAlpha = 0.95;
colormap([.0 1.0 .0]);
grid on
box on
axis equal on
view([45, 30])
xlabel('eje x')
ylabel('eje y')
zlabel('eje z')
1 commentaire
Walter Roberson
le 7 Juin 2015
You didn't really ask a question.
Réponses (0)
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!