Advertisement
albert828

Piła

Nov 9th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.19 KB | None | 0 0
  1. t=0:0.02:8;
  2. f=20;
  3. a=1;
  4. y=sawtooth(2*pi*0.5*t);
  5. subplot(3,1,1);
  6. plot(t,y);
  7. hold on;
  8.  
  9. y2=a*sin(2*pi*f*t);
  10. subplot(3,1,2);
  11. plot(t,y2);
  12. hold on;
  13.  
  14. y3=y+y2;
  15. subplot(3,1,3);
  16. plot(t,y3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement