Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (15 sloc) 0.467 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
function CreateMovieFromData(rootFilename,numberingVector)

vidObj = VideoWriter('peaks.avi');
open(vidObj);

counter=1;
for currentFilenumber = numberingVector
    grid = importdata([rootFilename,sprintf('%5.5i',currentFilenumber)]);
    scatter3(grid(:,1),grid(:,2),grid(:,3));
    axis([-2 12 -2 12 -2 12])
    movieFrames(counter) = getframe;
    writeVideo(vidObj,movieFrames(counter));
    counter=counter+1;
    
end
%movie(movieFrames,20,1)
close(vidObj);
end
Something went wrong with that request. Please try again.