Te Comps Experiment No.2 Aim: Theory: Time Scaling
Te Comps Experiment No.2 Aim: Theory: Time Scaling
Experiment No.2
Aim: To Perform various operations on a given signal like Shift, folding, time scaling, addition, and
subtraction.
Theory:
Time Scaling
x(At) is time scaled version of the signal x(t). where A is always positive.
|A| > 1 →→ Compression of the signal
|A| < 1 →→ Expansion of the signal
Note: u(at) = u(t) time scaling is not applicable for unit step function.
Time Reversal
Addition
Addition of two signals is nothing but addition of their corresponding amplitudes. This can be best
explained by using the following example:
Subtraction
subtraction of two signals is nothing but subtraction of their corresponding amplitudes. This can be
best explained by the following example:
Code:
#Folding
T3 = -t
y = cos(3*pi*T3) + 2*T3;
subplot(6,2,7);
plot(t, y);
title("Folded signal");
xlabel("time");
ylabel("amplitude");
y = cos(3*pi*t) + 2*t;
#Addition
z1 = x + y
subplot(6,2,9);
plot(t,z1);
title("Added signal");
xlabel("time");
ylabel("amplitude");
y = cos(3*pi*t) + 2*t;
#Subtraction
z2 = x - y
subplot(6,2,10);
plot(t,z2);
title("Subtracted signal");
xlabel("time");
ylabel("amplitude");
Output:
Conclusion:
I learned about various signal operations such as shifting, scaling, adding, subtracting, etc. and
performed them in octave.