Note that there are some explanatory texts on larger screens.

plurals
  1. POMATLAB Create Movie
    primarykey
    data
    text
    <p>** I figured out how to create the movie so the code has been changed to reflect the correct one in case it is useful for anyone in the future. This script creates a movie of a eqdconic map and saves it in avi format. The movie will run through 1255 frames. It also plots a dot at a certain point on the image, places a changing title on the movie to show what month is being run through, and has a colorbar on the right side.</p> <p>Some of the variables used were created elsewhere. The code for creating them has been left out to condense the code (and since they will not be useful for anyone else other than myself).</p> <pre><code>% Create movie nFrames = 34; % Number of frames for k = 1:nFrames % Eqdconic script % Define figure and axes fg1 = figure(1); axesm('MapProjection','eqdconic', 'MapParallels', [], 'MapLatLimit',[-80 -59],'MapLonLimit',[190 251]) % 60-70S and 120-160W framem on; gridm on; mlabel on; plabel on; hold all; % Plot data frame = dataPoint_movie(:,:,k); image = contourfm(lat,lon,frame, 'LineStyle', 'none'); hold on % Plot dot plotm(-66.75,224,'k.','MarkerSize',30); % Colorbar caxis([0 100]); h = colorbar; ylabel(h,'Percent'); % Title: Days 1:1258 inclusive. 20100101 to 20130611 date = datenum(2009, 12, 31) + k; % Convert t into serial numbers str = datestr(date, 'mmm yyyy'); % Show in the format mmm yyyy so title changes only once a month title(str); mov(k) = getframe(gcf); % gca would give only the image. gcf places the title and other attributes on the movie. end close(gcf) % % Save as AVI file movie2avi(mov, 'SeaIceConcentration.avi', 'compression', 'none', 'fps', 2); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload