I need to plot a hexagonal figure like (a) part of this image.
How can i do that?

댓글 수: 5

Rik
Rik 2021년 8월 3일
You can plot lines with the plot function. What did you try?
mohammad mortezaie
mohammad mortezaie 2021년 8월 3일
I want all details in the part (a) in image
KSSV
KSSV 2021년 8월 3일
Use text to show the text. Read about the function text.
mohammad mortezaie
mohammad mortezaie 2021년 8월 3일
it's solved.
Thank you
Adam Danz
Adam Danz 2021년 8월 18일
Please do not ask duplicate questions in the future.

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

 채택된 답변

Adam Danz
Adam Danz 2021년 8월 3일

1 개 추천

th = linspace(0,2*pi,7) + pi/6;
x = sin(th);
y = cos(th);
figure()
tiledlayout(1,2)
nexttile()
plot(x,y,'k-o','markerSize',3,'MarkerFaceColor','k')
axis equal
axis padded
nexttile()
hold on
zDist = .3;
plot3(x(:)*[1,1],y(:)*[1,1],zDist.*[-.5,.5].*ones(numel(x),1),'k-')
plot3([1;1]*x(:)', [1;1]*y(:)',zDist.*[-.5,.5],'k-')
zlim([-1,1])
view(-50,15)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

질문:

2021년 8월 3일

댓글:

2021년 8월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by