Make a movie out of a Crank Nicolson scheme

Hi, I am trying to make a movie out of the following code and all I get is a blank plot. I thought I just had to imbed the movie commands into the code. Can you please help. I am posting the code I want to make a movie out of and the example movie code I was trying to implement. the movie code has other stuff that we were trying out but we were mainly focused on the function not edited out.
any help would be appreciated.

3 Comments

Nicole - you may want to describe some more about how you are trying to use the Crank Nicholson method to create a movie. What problem are you trying to solve and display as a movie? I can run the CrankNicolson_Formula_original.m script and something appears on the plot, but I'm not sure how you intend to use this function in the movietest.m (as it isn't referenced there at all) or how you would use this function to create a movie.
Geoff,
I may be wrong but I am thinking that the equations in the crank nicolson file need to be imbedded in the movie code. here is what the plot should look like.
Nicole, I don't understand why following the procedure I laid out in my demo for you would not work . Just put your equation in, instead of the demo one, and it should create your movie. Did you at least try to run the demo?

Sign in to comment.

Answers (1)

See my attached demo of how I made a movie with surf() then got the frames and created a movie and a disk file. It should be easy to combine with your code.

Categories

Find more on Just for fun in Help Center and File Exchange

Asked:

on 21 Oct 2014

Commented:

on 21 Oct 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!