simulation for an array

1 Ansicht (letzte 30 Tage)
Nathan
Nathan am 20 Nov. 2013
Beantwortet: Simon am 20 Nov. 2013
If I have an array of positions, say:
1 2 4 5 2 2 4 5 6 8 4 2 8 4 3
etc..
And want to create a animated simulation with trace trails and what now, how can I do this? say this describes the position of a particle at x,y,z and every new position gets advanced in a small time frame deltaT.
thanks!

Antworten (1)

Simon
Simon am 20 Nov. 2013
Hi!
As far as I understand you want to create a movie? You can plot to a figure, capture the figure and play the movie like this
for j = 1:n
plotting commands
F(j) = getframe;
end
movie(F)

Kategorien

Mehr zu Simulation 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!

Translated by