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

3 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

hosein Javan
hosein Javan am 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')

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by