Thread Subject: rotating a surface-plot and creating a movie out of it

Subject: rotating a surface-plot and creating a movie out of it

From: Bart Vandewoestyne

Date: 22 Jan, 2008 13:04:52

Message: 1 of 2

Hello group,

I am trying to create a movie of how a 2D-function gets sampled
at various random points and then save this movie to a file that
can be played with a software movie player.

My best attempt so far is at

http://www.cs.kuleuven.be/~bartv/stuff/create_sampling_movie.m

but there are still some issues:

1) The rotation of the plotted surface looks weird and unnatural.
How can I make it look more natural? I am currently moving the
camera around the surface. Could it be better to fix the camera
and rotate the surface? If 'yes', how do I do that?

2) There are some issues with the creation of the .avi file.
Sometimes it looks OK, sometimes it doesn't and the movie is
corrupted. I think it has something to do with the getframe
commands I am using (changing 'getframe(gcf)' to 'getframe'
sometimes helped) but I could not isolate the problem and make it
reproducible. Does anybody see what I'm doing wrong?

Thanks,
Bart

--
"Share what you know. Learn what you don't."

Subject: rotating a surface-plot and creating a movie out of it

From: nimal

Date: 28 Jan, 2008 14:28:02

Message: 2 of 2

hai..
check this out..
an example of creating movie is given in 'example 2'
http://www.nbb.cornell.edu/neurobio/land/PROJECTS/Hierarchy/

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com