How to get a solid circle encircled by another circle and solid circle encircled by a square

1 view (last 30 days)
I am using
plot(X,Y,'o','MarkerFaceColor', 'k')
to get solid circle. But I want to get a solid circle encircled by another circle and solid circle encircled by a square. For example I have attached a fig where at the start there is a big circle and at the end there is a square.

Accepted Answer

hosein Javan
hosein Javan on 11 Aug 2020
x = 1; y =2;
figure(1)
plot(x,y,'o','MarkerSize',20)
hold on
plot(x,y,'o','MarkerFaceColor', 'k')
figure(2)
plot(x,y,'s','MarkerSize',20)
hold on
plot(x,y,'o','MarkerFaceColor', 'k')

More Answers (0)

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!