Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. close all;
  2.  
  3.  
  4. fs = 1000000;
  5. t = -5:1/fs:5;
  6. g = @(t, sigma) 1./sqrt(2.*pi.*sigma.^2).*exp(-t.^2./(2.*sigma.^2));
  7.  
  8. for s = [0.1 0.001 0.00001 0.0000001]
  9. figure;
  10. subplot(2,1,1);
  11. plot(t, g(t, s));
  12. title(strcat('Gaussian s=', num2str(s)));
  13.  
  14. subplot(2,1,2);
  15. PlotModSpectrum(g(t, s), fs);
  16. title(strcat('Centered CDFT s=', num2str(s)));
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement