MATLAB: Sawtooth plot with specific x ,y limits

sawtooth plot

Hi every one, How can I plot as saw tooth plot with exact x, y limits as attached image?
Thanks in advance

Best Answer

T = 10*(1/50);
Fs = 1000;
dt = 1/Fs;
t = 0:dt:T-dt;
x = sawtooth(2*pi*50*t);
plot(t,x)
xlim([0 0.2])
ylim([-1 1])
grid on
Related Question