Matt23

Untitled

Oct 10th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2.  
  3.  
  4. x = 0: pi / 10 : 10 * pi;
  5. x1 = sawtooth(x);
  6. x2 = square(x);
  7. x3 = sin(x);
  8.  
  9. subplot(3, 1, 1);
  10. plot(x,x1);
  11. axis([-inf inf -1.2 1.2]);
  12. xlabel('Kąt [rad]');
  13. ylabel('Amplituda');
  14. title('Piłokształtne');
  15.  
  16. subplot(3, 1, 2);
  17. plot(x, x2);
  18. axis([-inf inf -1.2 1.2]);
  19. xlabel('Kąt [rad]');
  20. ylabel('Amplituda');
  21. title('Prostokatny');
  22.  
  23. subplot(3, 1, 3);
  24. plot(x, x3);
  25. axis([-inf inf -1.2 1.2]);
  26. xlabel('Kąt [rad]');
  27. ylabel('Amplituda');
  28. title('Sinusiodalny');
Advertisement
Add Comment
Please, Sign In to add comment