Advertisement
Guest User

example

a guest
Jun 13th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.33 KB | None | 0 0
  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')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement