필터 지우기
필터 지우기

How to plot a circle?

조회 수: 4 (최근 30일)
Ara
Ara 2013년 1월 8일
Hi Everybody,
I am trying to plot a circle with radius= 190 km, and the centre of circle is (2.55, 101.46)both are in degree. If I have to change in km also are become like this (283.87, 11295.0345)km. The question is how can I determine the centre of circle by symbol? and the sketch has been attached here would be useful because I do not know how to plot like this? Could you please help me?
radius = 190;
centerX = 2.55;
centerY = 101.46;
rectangle('Position',[centerX, centerY, radius, radius],...
'Curvature',[1,1],...
'FaceColor','w');
axis square;
  댓글 수: 2
Image Analyst
Image Analyst 2013년 1월 8일
I don't know which of the four "download" words to click on on that page. Why don't you try http://snag.gy or tinypic.com?
Ara
Ara 2013년 1월 8일
Thank you. I did it. http://snag.gy/N2jVI.jpg

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

채택된 답변

Image Analyst
Image Analyst 2013년 1월 8일
I don't know what "determine the centre of circle by symbol" means, but I can tell you from the code that the center of the circle is at (x, y)=(2.55, 101.46) but I don't know what you mean when you say "both are by degree". What does a pair of degrees mean? Aren't x and y in km? How are they in degrees? What does that mean?
  댓글 수: 13
Ara
Ara 2013년 1월 16일
Thank you, Image. Sorry for the late response. Just remain some questions and I am trying to solve it, if I can't fix it I will bother you again.
Image Analyst
Image Analyst 2013년 1월 16일
Then perhaps you want this: http://www.mathworks.com/matlabcentral/fileexchange/34767-a-suite-of-minimal-bounding-objects? It will find the smallest circle (or rectangle or triangle, or other redefined shapes) that will contain (fit) all your points inside.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by