Advertisement
Guest User

shit8c

a guest
Oct 24th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.44 KB | None | 0 0
  1. function [ ] = func_8c(C, w0, N)
  2.  
  3. x = @(n, phi0, Om, phiOm, m ) C*(1 + m * cos(Om * n + phiOm)).*cos(w0*n + phi0);
  4.  
  5. f_1 = @(n) x(n, pi/3, w0/4, pi/6, 0.5);
  6. f_2 = @(n) x(n, 0, w0/4, 0, 0.5);
  7. f_3 = @(n) x(n, 0, w0/4, 0, 0);
  8. f_4 = @(n) x(n, 0, w0/4, 0, 1);
  9.  
  10. int = (0:(20*N - 1));
  11.  
  12. subplot(4,1,1), plot(int, f_1(int));
  13. subplot(4,1,2), plot(int, f_2(int));
  14. subplot(4,1,3), plot(int, f_3(int));
  15. subplot(4,1,4), plot(int, f_4(int));
  16.  
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement