how to crate an animated histogram
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Georgia Muller
el 16 de Sept. de 2018
Respondida: Zenin Easa Panthakkalakath
el 25 de Sept. de 2018
Write the code to produce an animation of the histogram of particle counts over time using a for loop. Write the code to produce the animation, given that the variables M, N, Delta, x and L already exist in the work space. The code just needs to produce the animation in MATLAB.
Respuestas (1)
Zenin Easa Panthakkalakath
el 25 de Sept. de 2018
You can use a combination of for loop, pause and drawnow. For example,
figure();
x=[0 1];
for i = 1:10
y=round(rand(100,1));
hist(y,x)
drawnow;
pause(0.1)
end
0 comentarios
Ver también
Categorías
Más información sobre Animation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!