Digital Signal Processing Labwork Name: Adeel Mustafa Reg. No. EE-01083-114 Sec. B Lab 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Digital Signal Processing Labwork Name: Adeel Mustafa Reg. No. EE-01083-114 Sec.

B Lab 1

Lab 1 Q.1. y( t)

ej2 t cos (t)2 sin (t an(t))


t

0t10

0.1 increament

Use plot and stem. t=0:10 y=(exp(j*2*pi.*t)+cos(t.^2)+sin(tan(t)))./t plot(t,y)

t=0:10 y=(exp(j*2*pi.*t)+cos(t.^2)+sin(tan(t)))./t stem(t,y)

Q.2. ( )

t1=3:10; t2=-6:1; z1=t1; z2=(1/3).*t2; plot(t1,z1) hold Current plot held plot(t2,z2)

Commands Used: Plot:


plot(X1,Y1,...,Xn,Yn) plots each vector Yn versus vector Xn on the same axes

Stem: A two-dimensional stem plot displays data as lines extending from a baseline along the x-axis. A circle (the default) or other marker whose y-position represents the data value terminates each stem. Hold: The hold function determines whether new graphics objects are added to the graph or replace objects in the graph. hold toggles the NextPlot property between the add and replace states.

You might also like