Signal and Systems Lab
Signal and Systems Lab
Introduction
Signals may be defined as a function of one or more independent variables that convey informa-
tion about the behavior or nature of some phenomenon. It can also be understood as a function
of some independent variable that results due to some physical processes. Some signals in our
daily life are music, speech, picture and video signals. Based upon the nature and characteristics
of signals in the time domain, signals may be broadly classified as:
1. Continuous-time signals
2. Discrete-time signals
Continuous-time signals
A continuous-time signal may be defined as a mathematical continuous function. This function
is defined continuously in the time domain for continuous time signals; the independent variable
is time,t. For a continuous time signal, we will enclose the independent variable in parentheses
() as x(t). A continuous-time signal has a value defined at each point in time.Speech signals and
the temperature of the room are examples of continuous-time signals.
Discrete-time signals
A discrete-time signal is defined only at certain time-instants. For discrete-time signal,the am-
plitude between two time instants is just not defined. For discrete-time signals,the independent
variable is time,n. For a discrete-time signal,we will enclose the independent variable in square
brackets[] as x[n]. Discrete-time signals can be obtained by periodic sampling of continuous time
signals. For example the crime rate, budget of the country is represented in discrete form.
t x≥a
r(t) =
0 t<0
n n≥0
r[n] =
0 n<0
1
Unit-step Signal
Signal that begins from the time instant’0’ and goes up to time instant ’+∞’ with the
constant amplitude of unity is called as ”Unit-step signal”. Continuous time unit step
signal is represented by u(t) and discrete time unit step signal as u[n].
Mathematically, continuous time unit step signal is represented as ,
1 t≥0
u(t) =
0 t<0
Mathematically, discrete-time unit step signal is represented as ,
1 n≥0
u[n] =
0 n<0
1 t=0
δ(t) =
̸ 0
0 t=
Mathematically, discrete time unit impulse signal is represented as,
1 n=0
δ[n] =
̸ 0
0 n=
Signum Signal
Signum Function can be represented in continuous time as ,
−1 t < 0
sgn(t) = 0 t=0
1 t>0
In discrete time as ,
−1 n < 0
sgn[n] = 0 n=0
1 n>0
Sinusoidal Signals
The signals varying with sine function of time or cosine function of time are called as
Sinusoidal signals. The general expression for continuous time sinusoidal signal may be
written is ,
x(t) = Acos(ωt + ϕ)
2
Exponential Signals
In continuous time , a real exponential signal may be written as,
x(t) = ceat
3
Output
Program 2
4
Output
Program 3
5
Output
Program 4
6
hold on ;
stem (0 , 0 , ' ro ' , ' filled ') ; % Mark discontinuity at n =0
Output
Program 5
% Define parameters
A = 2; % Amplitude
f = 1; % Frequency in Hz
phi = 0; % Phase shift in radians
Fs = 20; % Sampling frequency ( for discrete - time )
Ts = 1/ Fs ; % Sampling period
7
ylim ([ -A -1 A +1]) ;
Output
Program 6
% Define parameters
A = 2; % Amplitude
lambda = 0.5; % Growth ( if positive ) / Decay ( if negative )
rate
8
xlabel ( ' Time ( t ) ') ;
ylabel ( 'x ( t ) ') ;
title ( ' Continuous - Time Exponential Function ') ;
grid on ;
ylim ([0 A * exp ( lambda * max ( t ) ) +1]) ; % Adjust axis
Output