Azzera filtri
Azzera filtri

How to animate a Digraph?

1 visualizzazione (ultimi 30 giorni)
Maxime St-Jacques
Maxime St-Jacques il 4 Lug 2017
Risposto: Yu-Tung Lin il 12 Lug 2017
I have multiple digraphs created representing a nodal system over an entire year at an hourly timestep. Is it possible to animate a digraph in Matlab? im2frame requires uint8 or double...

Risposte (1)

Yu-Tung Lin
Yu-Tung Lin il 12 Lug 2017
I'm assuming you have a set of digraphs and want to animate on the same figure over time.
You can do it by adding the below codes between different digraph functions.
drawnow
n = 1 % n is the time in seconds you want to pause between different digraph
pause(n)
Now, the figure will update over time.
Please see reference for function drawnow and function pause.

Categorie

Scopri di più su Animation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by