Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

% Generation of sawtooth function

cc

f = 1000;
T = 1/f;
t = 0:T/f:3*T;
x = sawtooth(2*pi*f*t);

subplot(2,1,1)
plot(t,x,'r')
grid
xlabel('Time - t')
ylabel('amplitude')
title('sawtoothfunction - 21075A1008')
axis([0 4*T -1.2 1.2])

Published with MATLAB® R2020a

You might also like