필터 지우기
필터 지우기

How to draw square plot in matlab?

조회 수: 252 (최근 30일)
Nilanshu Mahant
Nilanshu Mahant 2022년 3월 16일
답변: Kazi 2024년 5월 29일
I want to draw individual and subplots in square dimenstion. Is there any command which I can use to get a square plot?

채택된 답변

Sam Chak
Sam Chak 2022년 3월 16일
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
Nilanshu Mahant
Nilanshu Mahant 2022년 3월 19일
Hello @sam chak
Thanks. Axis square is command which I’m not familiar and I found before 2 days thanks..

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

추가 답변 (1개)

Kazi
Kazi 2024년 5월 29일
squre

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by