필터 지우기
필터 지우기

Changing a circle in resize-able GUI

조회 수: 3 (최근 30일)
Nasser Jarrar
Nasser Jarrar 2018년 4월 29일
답변: Jan 2018년 4월 30일
Im using this function to plot a circle:plot(two,one,'ro','MarkerSize',30); in a resize-able GUI how can I scale and change the radius of the circle?

답변 (1개)

Jan
Jan 2018년 4월 30일
You can't. Using a marker to draw a circle, the size is fixed. Better:
alpha = linspace(0,2*pi,100);
x = r * cos(alpha);
y = r * sin(alpha);
plot(x,y);
axis('equal');
Now resizing the figure changes the size of the circle directly.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by