Lecture 2-Time-Shifted Signals and Matlab Implementation - Ss
Lecture 2-Time-Shifted Signals and Matlab Implementation - Ss
Qadri Hamarsheh
Outline
Time-shifted signals.
Continuous-Time signals using Matlab.
Time-shifted signals
Suppose that x(t ) a C-T signal, the time-shifted version of x(t ) :
Shifted to the right by t 1 seconds (Delay), x( t t 1 ) , t 1 -positive real
number.
Shifted to the left by t 1 seconds (Advance), x( t t 1 ) , t 1 -positive real
number.
Unit step function
u (t 2) u (t 2)
1 2 -2 -1
2-second right shift of u (t ) 2-second left shift of u (t )
Figure 1-9
Impulse Unit
k ( t t 1 ) 0, t t1
t
1
1
Dr. Qadri Hamarsheh
f (t )
f (t 0 )
t0 t
(t t 0 )
(t )
t0 t
Figure 1-10
2
Dr. Qadri Hamarsheh
Step 2: find the argument of () : 4
Step 3: find the value of the variable of integration that causes the
argument of () to go to zero
4 0 4.
Step 4: if the value in step 3 lies inside limits of integration, then
take everything that is multiplying () and evaluate it at the value
found in step 3 , otherwise "return" zero.
4 Lies in [0, 21] , so evaluate (1 / 3)e 4 sin(2 * 4) 0
An important application of the impulse signal is the decomposition of an arbitrary signal
in terms of scaled and delayed impulses:
An arbitrary sequence x(t ) can be expressed as:
x( t ) x( ) (t )dt
3
Dr. Qadri Hamarsheh
axis auto;
grid
xlabel('Time (Sec)');
ylabel ('Amplitude');
legend('Exponential Signal');
title('Plotting the C-T Signals using Matlab');
%plotting the Sinusoidal Signal
subplot(3,1,2);
plot(t,x2,'b');
axis auto;
grid
xlabel('Time (Sec)');
ylabel ('Amplitude');
legend('Sinusoidal Signal');
%plotting the Damped Exponential Signal
subplot(3,1,3);
plot(t,x,'g');
axis auto;
grid
xlabel('Time (Sec)');
ylabel ('Amplitude');
legend('Damped Exponential Signal');
Chapter1-1.m file
Figure 1-12