Clear Filters
Clear Filters

Changing a circle in resize-able GUI

3 views (last 30 days)
Nasser Jarrar
Nasser Jarrar on 29 Apr 2018
Answered: Jan on 30 Apr 2018
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?

Answers (1)

Jan
Jan on 30 Apr 2018
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.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!