0% found this document useful (0 votes)
49 views13 pages

DSP Exp 1

The document summarizes discrete time signals including unit impulse, unit step, ramp, exponential, sinusoidal, and cosine signals. Code examples in MATLAB are provided to generate plots of each signal type. Key characteristics of each signal such as amplitude variation over time are described.

Uploaded by

Atharva Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views13 pages

DSP Exp 1

The document summarizes discrete time signals including unit impulse, unit step, ramp, exponential, sinusoidal, and cosine signals. Code examples in MATLAB are provided to generate plots of each signal type. Key characteristics of each signal such as amplitude variation over time are described.

Uploaded by

Atharva Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Page No

Date:

Expeimenh- Ol

Amreneradiah ofdiscate-dime Signal of:


Unit-Impulse signo
Unit slepSignal
Ramp Sighal
Exponhehdio) signol
Sinoucalda sighal
Casine Signal
display the Xesull,
ReguiYehmenf Fopex ferming the pracHicals and
Usthg moatlab S.okuave.

Unit Tmpulse Signel


is also called tnit Sanple Seqpece uhich
The diacyete -ime Signa
Omplitwdeevywhere ahd at te onin (G:o) ik Omplitude
has zero
haszero
s ohe
Uril inpluse Sigoisdenoked by 3o) ahd is
The ciscrete- time
dehne as hO
CO everyuheve
Algovilhm ohd sleps
te tine n
finly ue dehine Geg
Sigral
To implermet nit-inplose Y-auis. rak arnpliide as
oh Then,n shenL), f
SienL),to
X- Ois Ghd amplitde
X-cois and sire
Grnplifuds ls 1
Origin, the he rit Sngle
Urit Tnplilse
ak oiginfo eploHed he
raph
plot the cdiscrele ime Sigral
signal
Oberation
one
AA =o, dmplitdeis
is zero eseuhere.
Ezcepf at tao,_Otmplitvde
We obfain_disceleUnit impulse Signal.
PROGRAM

x = -3:1:3;

y =
[zeros (1, 3), ones (1, 1), zeros (1, 3)1
stem(x, y)
ylabel ("Amplitude");
xlabel("Time") ;
title("UNIT IMPULSE");

OUTPUUT

UNIT IMPULSE

0.9

0.8

0.7
0.6
0.5

0.4
0.3

0.2
O.1

Time
Page Na 3
Date: 1

t skp Siga
he Unit sp Signal which is deined onlg at discree instante
of Hme s knouh as disceBe tine Unif Shep SIgal
I is deated byu()
Nathe maticalyhe discrhe-time Unit shep siga oy Segpenceu[B)_ts
delin as Tlaus
on=Ln2o
h o

levithun ard Seps


T implimenl Unit-step Sigha shly ie detird he time on
X-axis O ahd Omplitude Oh Y-ans hen we moyk ZeYo anmplitede
fr the Value which aye less than Zero Ond for the Yalues uhch
re QYratey oY eqpal toOne ad then by USing Stem
Gre to plot
the dit tie Sigm goph it plhted e Unt sBep_signal
OhserrahoD
The amplitde is Zero, tor o
2The amplitode 1s one, fex 2o. t2o,
We oblain discrefs Unit step Signal
PROGRAM

x = -4:1:4;

y =
[zeros (1, 4), ones(1), ones (1, 4)];
stem(X, y);
ylabel("Amplitude ") ;
xlabel("Time") ;
title("UNIT STEP") ;

OUTPUT

UNIT STEP

0.8

0.6

0.2

0
4
Time
Page No
Date:

Romp Sighal
The discrete- tine Uni romp signa is th Funcfion uhich
ShoHs n hEO Ohd Ihoraselineayly
T is Signal where amplidee Ihcreo Se
T Is denoBed by yn.
lineerly wih ine b.
MHhemicallythe discret tie Uhit step
YompSeg 15 deined as

Yn)-h fr nzo
Lo fr h6o

Ampde
Algoihn osteps
| s eimpliment Dnit romp Sighal e dekined time On X-aoxis
Vanes iheaywith
Gmd ampktode_on Yaxishen the Sghd
mx Ohd ten_by USing Stem fo plot ths discrete
ine Qs =
ine Sighal gaph weplaHel he "Onit Romp Signa
Obsexalion
between time Ond
We oblain a liheaY 9taph uhich Varise Iineady.
ampltode

2A z o n p a o t o = L o l ond So on.

3We obtain discrefe uni Yanp_Sighal


PROG RAM

x = 0:1:6;
y = [e, 1, 2, 3, 4, 5, 6];
stem(X, y):
ylabel("Amplitude ") ;
xlabel("Time") ;
title("RAMP SEQUENCE");

OUTPUT

RAMP SEQUENCE

O
Time
PageNo 5
Date:

Eponentiol Sigm
Anexpenenti Signal is a sigha uhich Voies expchenHially ulth
Hrme
The hegaive alues Yesult in_O Shrinking Signa wheveas
Dasitive Values YesulE In a gYo wning Sighal. uhere as the

Algorilhm Gd steps
impliment he expahenfia Ssiona We define time Ohoxic
and omplitede On Y-ans then by Using expohentiaEuncion
ye_petedJ the exponet Qraph

.Cbservabion
The oph
The gph Increases expoben.fially ith pasilive ond Sigraels
We cbioin the exponenlial Signal gnph at Voious Hime Sinal&
PROGRAM
x = :e.eeeee1:5;

y =exp (x);
plot(x, y)
ylabel("Amplitude ") ;
xlabel("Time ")
title("EXPONENTIAL SEQUENCE");

OUTPLUT

EXPONENTIAL SEQUENCE
150

100

50

0 2 3 4 5
Time
Pago No.6
Dato: 1

SinUsaidal Sigha
Sine WaYe oY Sinusoldal Sighal is a type of peyiodic Sigral
Isatype which SepeyoBe ifself eyen a Ceyfain period of ime
Inkeoval of 2r Represented o.s
O=Sin (u oy
fC)»Asin ut + w=2n

Algo vithom oho Steps


X-oaxis
lo tmpliment the Sinusoidal CusYe Wedeine time on
and amplitude o the igna Oh -axis he Yonge ot Gmplitode
of the Sine Varies rom-tal and i Sepe Yepeate itself oE We obtain
a poy ticulay timepenad oE 21By Uslhng_plot O,
a Sinusoidaluaye Slgnal.

Ohersalicn
We obain a Stne uave Signel In a þoyiculay time interval

T s Oplitude Vayles from to


PROGRAM
x = 0:0.1:5*pi;

y sin(x);
stem(x, y):
ylabel("Amplitude") ;
xlabel("Time");
title("SINUSOIDAL SIGNAL");

OUTPUT

SINUSOIDAL SIGNAL

0.8

0.6

0.4

0.2

02
-0.4
ol
-0.6

-0.8

4 6 8 10 12 14 16
Time
Page No. 7
Date:

Casine Slona
iden Hica
A cosine wave ISa Signa wove form with a Shape the
COSine than
to that sf a Sine wove except Cycle ealcier an
CoXrespon cine _Doiht of the sibe wave.

Algovithmand skeps
lo impliment the Cosine Signa weplof time On X-axis Omp
amplikude Gh Y-axis Then by dsing Cos) We_ploted he Sighalthe
Whose amplitude Vayies from-fol then by Using plotL) the
plot the Cosine gYaph we plotted tho CoSihe Sigha.

Observatton
We obtoin a CoSine Waveom uheye amplitode Vavies om--to l.

A Cosine Cuce which is Himes eorlieg thon Sinvosidal uovehm

Conclo kion
We Success folly ploted the discYde ine Sequentes to orout
Signes like únit impluseuntstep, Ranp, expohentjal Sinusnidal,
Cosine wovetorms ahd ohlalned the Yesults on the Matlab Softuoye.
PROGRAM

x = 0:e.1:5*pis
y = cOs(X)

stem(X, y)s
ylabel("Amplitude")s
xlabel("Time")s
title("cOSINE SIGNAL") ;

OUTPUT

cOsINE SIGNAL

o.8
0.6

0.4

0.2

0.2
-0.4

-0.6

-0.8

8 10 12 14 16
Time

Cauw
oer
|09/.2

You might also like