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

Geoff Hayes
Geoff Hayes 2014년 10월 21일
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.
Nicole
Nicole 2014년 10월 21일
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.
Image Analyst
Image Analyst 2014년 10월 21일
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?

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2014년 10월 21일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Just for fun에 대해 자세히 알아보기

질문:

2014년 10월 21일

댓글:

2014년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by