MATLAB Answers


Animation of incresing value

Asked by Arun Badigannavar on 3 Aug 2012

I ahve a one integer value,,, suppose 100. I want it to put in a animation increasing from 0 to 100 with step increment of 1 ,,,How to do it,,and everytime my integer value will change


I want to put some energy value in MATLAB animation ,,like,movement of waves when we drop the stone in water,,,the waves travel upto some limit from the point of drop in a water,,,in the same manner i want to show that there is an impact on a metal strucuture with some animation,,how to do it?

please anybody helpout on this

Well there are a couple of ways, depending on your desired file format. The easiest way is probably to use imwrite to write out a *.gif. You can create the desired image in a figure() within a loop and then use the method described here to animate it.



No products are associated with this question.

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!