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

5 comentarios

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

Iniciar sesión para comentar.

 Respuesta aceptada

Adam Danz
Adam Danz el 3 de Ag. de 2021
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)

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Ag. de 2021

Comentada:

el 18 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by