Plotting animations (time-evolution)

  • #1
475
12

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
DrClaude
Mentor
7,050
3,201
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.
 
  • #3
475
12
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!
 

Related Threads for: Plotting animations (time-evolution)

Replies
6
Views
70K
Replies
6
Views
4K
  • Last Post
Replies
1
Views
1K
Replies
0
Views
8K
  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
1
Views
8K
  • Last Post
Replies
6
Views
1K
Top