Advertisement
albert828

Pseudolosowość

Nov 9th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.41 KB | None | 0 0
  1. %PSEUDOLOSOWOSC
  2.  
  3.  
  4. % generowanie sygnalu sinusoidalnego
  5. N = 200;    %dlugosc w probkach
  6. fp = 1000;   %czestotliwosc
  7. %generowanie osi czasu
  8. t=0:1/fp:(N-1)/fp;  
  9.  
  10. figure(1);
  11. x = randn(1,N);
  12. plot(t, x, 'b');
  13. xlabel('czas [s]');
  14. %return;
  15. title('wykres szumu gaussowskiego');
  16.  
  17. y = randn(1,N);
  18. hold on;
  19. plot(t, y, 'r');
  20. %return;
  21.  
  22. z = randn(1,N);
  23. plot(t, z,'g');
  24.  
  25. v = randn(1,N);
  26.  
  27. plot (t, v, 'k');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement