tutorial: making “movie” slides using matlab and power point chet lo university of utah 7-7-03
TRANSCRIPT
![Page 1: Tutorial: Making “Movie” slides using Matlab and Power Point Chet Lo University of Utah 7-7-03](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649ec65503460f94bd2512/html5/thumbnails/1.jpg)
Tutorial: Making “Movie” slides using Matlab and Power Point
Chet Lo
University of Utah
7-7-03
![Page 2: Tutorial: Making “Movie” slides using Matlab and Power Point Chet Lo University of Utah 7-7-03](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649ec65503460f94bd2512/html5/thumbnails/2.jpg)
×
∫
Autocorrelation Function
![Page 3: Tutorial: Making “Movie” slides using Matlab and Power Point Chet Lo University of Utah 7-7-03](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649ec65503460f94bd2512/html5/thumbnails/3.jpg)
function NDRmovie()
axis([-5 25 1 4000]);set(gca,'nextplot','replacechildren');L = 5000; LL = 10; L2 = L/2; n = 1000; s = 5;b = randn((L/LL),1);a = [];for i=1:(L/LL), if b(i) < 0, temp = -1*ones(LL,1); else temp = ones(LL,1); end a = [a;temp];endaa = a((L2-n):(L2+n));m = length(aa)mm = 1:m;j = 0;cc = [];for i = -n:s:n, j = j+1; bb = a((L2-n-i):(L2+n-i)); plot(mm,aa+20,mm,bb+12); hold on; plot(n+1,aa(n+1)+20,'r*',(n+1+i),bb(n+1+i)+12,'r*'); cc(j) = aa'*bb/(m/10); plot((1:s:j*s),cc); plot(j*s,cc(j),'r*'); hold off; F(j) = getframe(gca);endmovie2avi(F,'example2','quality',100);
The last command creates and aviThat can be inserted directly in powerPoint. The filename will be example2.avi