How do I animate a group of shapes while constantly deleting some and adding more?

조회 수: 1 (최근 30일)
I am trying to model something like smoke coming out of a chimney, and I plan to model the smoke using circles that are constantly coming out of the chimney, while the ones that are further away fade/disappear. I don't need help with the specifics of the model. The only issue I am currently facing is how to go about animating this group of circles, where some are being added, and others are being deleted. Preferably using for loops so I can manipulate each circle as I please. Thank you in advance!

답변 (1개)

Image Analyst
Image Analyst 2017년 7월 28일
Try changing the inputs to viscircles() in a for loop.
  댓글 수: 1
foweifnewoi
foweifnewoi 2017년 7월 28일
Hi Image Analyst. Thanks for the reply. Unfortunately, this isn't what I'm looking for. I know how to plot the circles on the graph. The issue I'm having is animating them all at once (each with unique movement), while adding new circles and deleting old ones. Thanks.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by