function y = sawtooth(t) % Sawtooth Function y = (sign(t + 1) - sign(t - 1)) / 2 .* (t+1) / 2;