MATLAB Answers

animation in matlab?

5 views (last 30 days)
how to make animation in matlab? i want to show animation for water flow and led blinking in matlab

Accepted Answer

Grzegorz Knor
Grzegorz Knor on 16 Sep 2011
There is a lot of options. The main idea is as follows:
  • create an object (for example line)
  • change it propeties in a loop
simple example:
h = plot(sin(sqrt(2)*0+sqrt(3)),cos(sqrt(5)*0),'r.','MarkerSize',20);
xlim([-1 1])
ylim([-1 1])
axis off
for t=0.01:.01:100
See also:
  1 Comment
PRIYANK SHAH on 17 Sep 2011
thank u very much its working......
can u tell me
: is this possible to measure sound level (db) of generated sound signal using matlab ? sound signal is sent to sound card .. but i dont know how to measure it or how to save that data for ploting nd convert it into dB?
thanks again for ur reply...

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!