1 / 3

Tutorial: Making “Movie” slides using Matlab and Power Point

Tutorial: Making “Movie” slides using Matlab and Power Point. Chet Lo University of Utah 7-7-03. Autocorrelation Function. ×. ∫. 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 = [];

butch
Download Presentation

Tutorial: Making “Movie” slides using Matlab and Power Point

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tutorial: Making “Movie” slides using Matlab and Power Point Chet Lo University of Utah 7-7-03

  2. Autocorrelation Function × ∫

  3. 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]; end aa = 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); end movie2avi(F,'example2','quality',100); The last command creates and avi That can be inserted directly in power Point. The filename will be example2.avi

More Related