Animating circle to increase and decrease in size over a period of time

5 Ansichten (letzte 30 Tage)
Tze Tian
Tze Tian am 22 Apr. 2014
Beantwortet: Tze Tian am 22 Apr. 2014
I would like to create a simple visualization whereby the circle (country) will increase/decrease in size(Base on the variables) with respect to time.
How can it be done on matlab with my current dataset ? I would want each circle to represent a country and the size of the circle will be determined by the value in that particular year. C1990 represents year 1990

Antworten (2)

Image Analyst
Image Analyst am 22 Apr. 2014
You can use rectangle() to draw a circle if you want. The radius can be the number in your table. Use "hold on" and then plot a circle for every country. Then turn hold off, call cla() to wipe the plot clean, then plot them all again for the next year. Pretty easy.

Tze Tian
Tze Tian am 22 Apr. 2014
@Image Analyst oh what i am actually looking for is an animation sequence. Would that be possible ?

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by