I want to draw a transparent sphere with three X Y Z and some curves inside it

조회 수: 34 (최근 30일)
I want to draw a transparent sphere of poincare with three X Y Z and some curves inside it
i did it with hand in the attached file
I need your help
thank you very much

답변 (1개)

Dave B
Dave B 2021년 10월 8일
How about something like this (I'm including the code to draw some circles around the sphere, a couple of different ways, but I'll leave it to you to do the geometry):
[x,y,z]=sphere;
surf(x,y,z,'FaceAlpha',.3,'EdgeColor','none');
hold on
plot3(x(z==0),y(z==0),z(z==0),'k--','LineWidth',2)
[x2,y2,z2]=sph2cart(linspace(0,2*pi,100),-pi/7,1);
plot3(x2,y2,repelem(z2,100),'k--','LineWidth',2)
axis equal
  댓글 수: 8
DGM
DGM 2021년 10월 9일
I intentionally didn't align the rectangle and left things incomplete because I'm not inclined to do everything. I'm providing examples of how the various elements can be constructed.
walid albugami
walid albugami 2021년 10월 10일
i tried to change some parameters before i sent my last comments but it didn't work with me, if you know juste tell me please only what i have to change and i will do it.
thank you very much

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by