Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0: pi / 10 : 10 * pi;
- x1 = sawtooth(x);
- x2 = square(x);
- x3 = sin(x);
- subplot(3, 1, 1);
- plot(x,x1);
- axis([-inf inf -1.2 1.2]);
- xlabel('Kąt [rad]');
- ylabel('Amplituda');
- title('Piłokształtne');
- subplot(3, 1, 2);
- plot(x, x2);
- axis([-inf inf -1.2 1.2]);
- xlabel('Kąt [rad]');
- ylabel('Amplituda');
- title('Prostokatny');
- subplot(3, 1, 3);
- plot(x, x3);
- axis([-inf inf -1.2 1.2]);
- xlabel('Kąt [rad]');
- ylabel('Amplituda');
- title('Sinusiodalny');
Advertisement
Add Comment
Please, Sign In to add comment