How to draw square plot in matlab?

408 visualizaciones (últimos 30 días)
Nilanshu Mahant
Nilanshu Mahant el 16 de Mzo. de 2022
Respondida: Kazi el 29 de Mayo de 2024
I want to draw individual and subplots in square dimenstion. Is there any command which I can use to get a square plot?

Respuesta aceptada

Sam Chak
Sam Chak el 16 de Mzo. de 2022
Here is the basic to draw a square or any rectangular object. The rectangle function will pick a corner at (2, 3) and then draw a 5-by-5 square.
rectangle('Position',[2 3 5 5])
axis square
axis([0 10 0 10])
Result:
  1 comentario
Nilanshu Mahant
Nilanshu Mahant el 19 de Mzo. de 2022
Hello @sam chak
Thanks. Axis square is command which I’m not familiar and I found before 2 days thanks..

Iniciar sesión para comentar.

Más respuestas (1)

Kazi
Kazi el 29 de Mayo de 2024
squre

Community Treasure Hunt

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

Start Hunting!

Translated by