Professional Documents
Culture Documents
% Generation of Sawtooth Function: Published With MATLAB® R2020a
% Generation of Sawtooth Function: Published With MATLAB® R2020a
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])