Advertisement
worms005

PPS zaszumienie sygnalu sinusoidalnego

Nov 24th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.36 KB | None | 0 0
  1. %skrypt sin_szum
  2. %zaszumianie sygnalu sinusoidalnego
  3.  
  4. clf
  5. f=5;
  6. t=0:0.001:0.999;
  7. x=2*sin(2*pi*f*t);
  8. szum=randn(1,length(x));
  9. y=x+szum;
  10.  
  11. subplot(3,1,1);
  12. plot(t,x);
  13. xlabel('czas [s]');
  14. ylabel('sygnal 1');
  15. subplot(3,1,2);
  16. plot(t,szum);
  17. xlabel('czas [s]');
  18. ylabel('szum bialy');
  19. subplot(3,1,3);
  20. plot(t,y);
  21. xlabel('czas [s]');
  22. ylabel('sygnal + szum');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement