MATLAB Answers

drawcircle function outputs circle or oval by default?

2 views (last 30 days)
Adrian Lee
Adrian Lee on 19 Nov 2020
Answered: Star Strider on 19 Nov 2020
i am using the drawcircle function in my program, i notice that the circle looks more oval
roi = drawcircle('Center', [3 3], 'Radius', 3); %code used in the program
the output i received looks more of an oval than a circle
is it due to the stretching caused by a rectangular screen?
the output

  0 Comments

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 19 Nov 2020
Use:
axis('equal')
and it magically becomes a circle!
See the documentation on axis for details.

  0 Comments

Sign in to comment.

Tags

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by