section volume by interception between cylinder and sphere?
이전 댓글 표시
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
Walter Roberson
2015년 6월 7일
You didn't really ask a question.
답변 (0개)
카테고리
도움말 센터 및 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!