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