필터 지우기
필터 지우기

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.

조회 수: 1 (최근 30일)
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

답변 (1개)

KSSV
KSSV 2022년 3월 11일
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
Wesley
Wesley 2022년 3월 11일
I see, the padding is well implemented, thank you very much for your answer.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by