Trying to make a simple animation
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I am wanting to create a plot that shows a cursor moving along the line of an ellipse with respect to a certain time frame. I was able to use this

to acquire a red dot that moves through each point along the shape, but how could I incorporate a linear time rate of my choosing. I'm pretty sure by default the program runs 12 frames per second. I need maybe like 3 or 4 fps.
-Thank you!
0 Kommentare
Antworten (1)
Mark Sherstan
am 17 Dez. 2018
Run something like this:
tic
loopTimer = toc
... % Loop start
while ((toc - loopTimer < 3); end % Make sure you actually hit 3 seconds
% Your function here...
loopTimer = toc
... % Loop end
0 Kommentare
Siehe auch
Kategorien
Mehr zu Animation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!