plot ellipses by clicking points?
조회 수: 2 (최근 30일)
이전 댓글 표시
How to plot ellipses by clicking on the points. I have a 100*100 cm grid and I would like to generate ellipses in it by clicking different positions. Is there a way to do it? The ellipses can intersect and thereby I need to detect the high region of intersection.
채택된 답변
KSSV
2018년 9월 18일
편집: KSSV
2018년 9월 18일
figure
hold on
axis equal
t=-pi:0.01:pi;
for i = 1:10
a=10; % horizontal radius
b=5; % vertical radius
[x0,y0] = getpts() ;
x=x0(1)+a*cos(t);
y=y0(1)+b*sin(t);
plot(x,y)
drawnow
end
댓글 수: 7
KSSV
2018년 9월 18일
That is your choice..you should be knowing....they determine the size/ radii of ellispes.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Labels and Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!