[9f010e]: / Analysis / jPCA_ForDistribution / rotationMovie.m

Download this file

23 lines (12 with data), 469 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
% This is a hastily written and not well commented function.
% Though fairly self explanatory.
function MV = rotationMovie(Projection, Summary, times, steps2fullRotation, numSteps2show, pixelsToGet)
reusePlot = false;
for step = 1:numSteps2show
rotate2jPCA(Projection, Summary, times, steps2fullRotation, step, reusePlot)
reusePlot = true;
drawnow;
if nargout > 0
MV(step) = getframe(gca, pixelsToGet);
end
end