a guest Jun 13th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. figure;
  2. N=35;
  3. n=[0:1:N]
  4. y1=cos(2*pi*n/N+pi/4)
  5. plot(y1)
  6. hold on
  7. y2=0.5*cos(4*pi*n/N)
  8. plot(y2)
  9. hold on
  10. y3=0.25*cos(8*pi*n/N+pi/2)
  11. plot(y3)
  12. hold on
  13. legend({'y1=cos(2*\pi*n/N+\pi/4)','y2=0.5*cos(4*\pi*n/N)','y3=0.25*cos(8*\pi*n/N+\pi/2)'},"location","southeast")
  14. xlabel('Numer probki')
  15. ylabel('Wartosc')
  16. title('Sygnaly')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand