please help i need to draw a green circle of radius 0.8 centered at x =2 , y=1.5 and display the result with the correct aspect ratio that is as a circle not an ellipse
then i need to fill the circle with gray and mark the center of the circle with a black X

답변 (2개)

Image Analyst
Image Analyst 2012년 5월 23일

1 개 추천

Make sure you set "axis square" or "axis equal" and call "hold on" before you call text() or plot() to put on the "X".

댓글 수: 3

lowcalorie
lowcalorie 2012년 5월 23일
can you please help with writing the code i need it ASAP
Oleg Komarov
Oleg Komarov 2012년 5월 23일
Have you checked the link? It has code examples.
Also do NOT double post.
Your post is NOT an emergency:
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
Walter Roberson
Walter Roberson 2012년 5월 23일
You do not actually need "hold on" before using text() or line() or patch() or a small number of other primitive calls. However, plot() is not a primitive call and you _do_ need "hold on" before using it to overlay data on the same axes.

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

Chad Greene
Chad Greene 2014년 12월 9일

0 개 추천

With circles
circles(2,1.5,0.8,'facecolor','green');
axis equal

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2012년 5월 23일

답변:

2014년 12월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by