Update viscircles position in an interactive plot

I am creating a circle at a specified position using
F = viscircles([Xposition Yposition], radious);
Later on the code I need to update the circles' position by using the hanfle `F`, in the same manner that if this was a scatter plot I could say
set(F, 'XData', ...
What is the equivalent command for setting the circles' center?

댓글 수: 1

When i tested it the result of viscircles (i.e. f) is a hggroup object containing 2 Lines, though I'm not sure why, both lines show the circle, but seem to have slightly different positional data.
You could edit each one with e.g.
F.Children(1).XData
F.Children(2).XData

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

질문:

2018년 3월 29일

댓글:

2018년 3월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by