Creating movies from surface maps
Show older comments
How can I create movies from figures produced with "surfacem" of the Maping Toolbox?
Thank you.
Answers (2)
Image Analyst
on 13 Dec 2011
0 votes
6 Comments
Jorge Ramirez
on 13 Dec 2011
Oliver Woodford
on 13 Dec 2011
Since the suggested approaches both save the figure as an image at each frame, the problem must therefore be that your figure to image conversion is introducing the errors you describe. Perhaps you can improve your question to be more specific about this.
Jorge Ramirez
on 13 Dec 2011
Sean de Wolski
on 13 Dec 2011
Have you tried using frame2im?
Sean de Wolski
on 13 Dec 2011
What are sample lat/lon/Vul_P values we could use to replicate what you have?
Jorge Ramirez
on 13 Dec 2011
Sean de Wolski
on 13 Dec 2011
- Force the figure to be a certain size with units pixels, put a set of axes onto it in a certain position. Then use the rectangle second input to getframe to extract just the part you want. (You could also just guess and check a few times to figure out the part you want.
- To play the movie, set the various axes ticks to off so they don't show up, i.e:
figure;
axes;
set(gca,'xtick',[]);
set(gca,'ytick',[]);
movie(Md,5);
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!