MATLAB Plotting animations (time-evolution)

Click For Summary
The discussion centers on creating an animation of a spatial probability density function that varies with both space (x) and time (t) using MATLAB. The user has successfully plotted the probability density for specific time points but seeks to visualize its evolution over a range of time (from t=0 to t=5). A suggestion is made to utilize a loop to plot the probability density function at each time step on the same graph, which would create an animated effect as the calculations progress. The user expresses understanding and plans to implement the advice.
WWCY
Messages
476
Reaction score
15
Hi all,

I have a spatial probability density function that is dependent on ##x##, space and ##t##, time.

I am able to make a plot for spatial probability density for each point in time by specifying ##t## values by using the fplot function.

However, I want an animation that allows me to see how probability density evolves from say ##t[0 , 5]##.

Are there any MATLAB functions that could help me achieve this?

Many thanks in advance.
 
Physics news on Phys.org
In the loop over time, simply plot the pdf at every step on the same plot. As the calculation goes, it will appear as an animation.
 
DrClaude said:
In the loop over time, simply plot the pdf at every step on the same plot. As the calculation goes, it will appear as an animation.

I believe I understand what you mean. I'll give it a shot, thank you!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K