How to fill closed curves. The code I wrote can't be implemented, I don't know how to correct it, thanks for the answer.

3 Ansichten (letzte 30 Tage)
fig = openfig('biaozhunxinyuevv.fig');
fig = gcf;
axObjs = fig.Children;
dataObjs = axObjs.Children;
xt= dataObjs(1).XData;
yt= dataObjs(1).YData;
fill(xt,yt,'r')
plot(xt,yt,'ko')
hold on

Antworten (1)

KSSV
KSSV am 11 Mär. 2022
fig = gcf;
axObjs = fig.Children;
dataObjs = axObjs.Children;
xt= dataObjs(1).XData;
yt= dataObjs(1).YData;
fill(xt,yt,'r')
hold on
plot(xt,yt,'ko')
  4 Kommentare
Wesley
Wesley am 11 Mär. 2022
I see, the padding is well implemented, thank you very much for your answer.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by