Plotting animations (time-evolution)

Click For Summary
SUMMARY

This discussion focuses on creating animations of spatial probability density functions in MATLAB. The user seeks to visualize the evolution of probability density over time, specifically from t = 0 to t = 5. The recommended approach involves using MATLAB's fplot function within a loop to plot the probability density function (pdf) at each time step, allowing for a dynamic visualization of the changes. This method effectively creates an animation that illustrates the time-evolution of the spatial probability density.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of spatial probability density functions
  • Knowledge of animation techniques in MATLAB
  • Experience with plotting functions, specifically fplot
NEXT STEPS
  • Explore MATLAB's built-in animation functions such as 'getframe' and 'movie'
  • Learn about MATLAB's 'pause' function to control animation speed
  • Investigate advanced plotting techniques using 'surf' or 'mesh' for 3D visualizations
  • Research optimization techniques for real-time plotting in MATLAB
USEFUL FOR

Researchers, data scientists, and educators who are interested in visualizing dynamic systems, particularly those working with probability density functions in MATLAB.

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
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K