Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. fs = 10000;
  2. czas = 5;
  3. t = 0: 1/fs:czas-1/fs;
  4. y3 = chirp(t,0,5,1000,'quadratic',[ ],'concave');
  5. hold on;
  6. subplot(2,1,1);
  7. plot(t, y3);
  8. axis([0 1 -1 1]);
  9. ylabel('Amplituda');
  10. xlabel('Częstotliwość[Hz]');
  11. title('Sygnał sinusoidalny o zmiennej częstotliwości');
  12.  
  13. subplot(2,1,2);
  14. spectrogram(y3,window(@hamming, 256),0,256,fs,'yaxis');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement