0 views

Uploaded by Pranav Mp

dsp lab reports

- Chapter 1 BKU2032
- _syllabus
- 95P_mobicom2004
- May 2003 Exam Answers
- VLSI Signal Processing
- V1I618
- 10.1.1.132
- Mfec-1
- Digital Signal Processing - Lecture Notes, Study Materials and Important questions answers
- 5_1_stu.pdf
- Communication Systems Fundamentals and Design Methods PDF
- Www.statsoft.com Textbook Distribution-tables
- RISC Implementation Of Digital IIR Filter in DSP
- S216Chptr04- Normal Distribution
- Directional Model
- Impulse Invariance and Bilinear
- Transmission lines QA
- Gudbjartsson Patz PMC 1995
- Crossings of Second Order Response Processes by Galtier Et Al
- Applications of Periodic and Quasi-Periodic Expansions to Options Pricing

You are on page 1of 17

Experiment 1

Prepared for: Dr Suresh Rangan

Prepared by: Muhammad Sahid

(B140118EC) 17 July 2017

DIGITAL SIGNAL PROCESSING LAB

Objective

To familiarise with the basic matlab plots. Formulate equations ,plot graphs for the

questions provided and note down the inferences, results.

QUESTIONS

1. Generate the following discrete time sequences and display using stem function

a. Unit impulse

y=[1,0,0,0,0];

z=[0,1,2,3,4];

stem(z,y)

DIGITAL SIGNAL PROCESSING LAB

b. Unit step

x=-6:1:6; y=[0,0,0,0,0,0,1,1,1,1,1,1,1];

stem(x,y)

c. Unit ramp

x=0:0.01:1;

y=x;

stem(x,y)

d. x{n]={…1,2,3,4,1,2,3,4,….}

b=[];

for i=1:n

b=[b,a];

end

x=1:4*n

stem(x,b)

end

e. x[n]=20(0.9)^(n)u[n]

n=-10:10;

z=zeros(1,21);

z(1,11:21)=1;

x=20*0.9.^n.*z;

stem(n,x)

f. x[n]=0.2(1.2)^(n)u[n]

n=-10:10;

z=zeros(1,21);

z(1,11:21)=1;

x=0.2*1.2.^n.*z;

stem(n,x)

g. x[]n]=(-0.8)^(n)u[n]

n=-10:10;

z=zeros(1,21);

z(1,11:21)=1;

x=(-0.8).^n.*z;

stem(n,x)

i. The complex exponential sequence x[n]=e^(-1/12 +j*pi/6). Display both the real and

imaginary parts.

n=-10:10;

x=exp((-1/12+1i*pi/6).*n);

stem(n,real(x))

hold

stem(n,imag(x))

j. x1[n]=cos(2*pi*n), x2=cos(1.8*pi*n), x3[n]=cos(2.2*pi*n). Compare the plots generated

for the three cases and comment on your result. Plot all the signals in the same figure.

(“subplot” and “hold” function)

n=-10:10;

x1=cos(0.2*pi.*n);

x2=cos(1.8*pi.*n);

x3=cos(2.2*pi.*n);

subplot(3,1,1);

stem(n,x1)

subplot(3,1,2);

stem(n,x2)

subplot(3,1,3);

stem(n,x3)

k. x4[n]=cos(4*pi*n/17), x5[n]=3cos(1.3*pi*n)-4sin(0.5*pi*n+0.5 p), x6[n]=5cos(1.5*pi*n

+0.75p)+4cos(0.6*pi*n) - sin(0.5*pi*n). In each case, determine the period of the of the

sequence theoretically and verify the result using MATLAB output.

n=-20:20;

x4=cos(4*pi/17.*n);

x5=3*cos(1.3*pi.*n)-4*sin(0.5*pi.*n+0.5*pi);

x6=5*cos(1.5*pi.*n+0.75*pi)+4*cos(0.6*pi.*n)-sin(0.5*pi.*n);

subplot(3,1,1);

stem(n,x4)

subplot(3,1,2);

stem(n,x5)

subplot(3,1,3);

stem(n,x6)

l. x(n)=2[n(0.9)n] for n=0:50.

n=0:50;

x=2.*n.*(0.9).^n;

stem(n,x)

m. x[n]=(0.95)n sin(0.1*pi*n) for n=0:50

n=0:50;

x=sin(0.1*pi.*n).*(0.95).^n;

stem(n,x)

2. A random signal of length N with samples uniformly distributed in the interval (0,1) can

be generated by using the MATLAB command x=rand(1,N). Likewise, a random signal

x[n] of length N with samples normally distributed with zero mean and unity variance can

be generated by using the following MATLAB command x=randn(1,N);

Write a MATLAB program to generate and display a random signal of length 100 whose

elements are uniformly distributed in the interval [-2,2] .

N=100;

r = -2+ (2+2)*rand(1,N);

stem(r)

figure

hist(r)

b. Write a MATLAB program to generate and display a Gaussian random signal of length

75 whose elements are normally distributed with zero mean and a variance of 3.(Check

your result with mean() and var()).

N=10000;

a = sqrt(3);

y = a.*randn(N,1);

RESULTS

- Chapter 1 BKU2032Uploaded byberapi
- _syllabusUploaded byNguyễn Đăng Thắng
- 95P_mobicom2004Uploaded byLi Xuanji
- May 2003 Exam AnswersUploaded byPete Jacopo Belbo Caya
- VLSI Signal ProcessingUploaded bySuriya Skariah
- V1I618Uploaded byijcert
- 10.1.1.132Uploaded byVijay Shankar T
- Mfec-1Uploaded byRonny Andalas
- Digital Signal Processing - Lecture Notes, Study Materials and Important questions answersUploaded byBrainKart Com
- 5_1_stu.pdfUploaded byjhnelson2014
- Communication Systems Fundamentals and Design Methods PDFUploaded byKyle
- Www.statsoft.com Textbook Distribution-tablesUploaded bykakkras
- RISC Implementation Of Digital IIR Filter in DSPUploaded byInternational Organization of Scientific Research (IOSR)
- S216Chptr04- Normal DistributionUploaded byTammy Nguyen
- Directional ModelUploaded byTrung Duc Hoang
- Impulse Invariance and BilinearUploaded byAnang Maruf
- Transmission lines QAUploaded byAdam Gilly
- Gudbjartsson Patz PMC 1995Uploaded bysakaie7005
- Crossings of Second Order Response Processes by Galtier Et AlUploaded byadaniliu13
- Applications of Periodic and Quasi-Periodic Expansions to Options PricingUploaded byPBD10017
- Ici DistributionUploaded byGonzalo Rafael Landaeta Cordero
- MC_resampling_Nbars - Mark JohnsonUploaded by_rr99
- Geostatistics Formula SheetUploaded byAnonymous cMBxGA
- Phi2-02Uploaded byjosefranciscoparis
- lec1 (1).pdfUploaded byRajeswar Reddy Bijivemula
- PDF4LHC Practical GuideUploaded byJeffrey Peeko
- CV Packet 2013.pdfUploaded byJF
- Least_Squares.pdfUploaded byfanatickakashi
- 06JMIHI04-1780 (1)Uploaded bySivaRaman Jayaraman
- Influence of Data Geometry in Random Subset Feature SelectionUploaded byLewis Torres

- Fishtailing Instabilities in Emergency Towing of Disabled TankersUploaded bySudheesh Ramadasan
- Statistics All StandardGradeGeneralCreditMaths NotesUploaded bytomcecdl
- Control_report.pdfUploaded byAnonymous j920Bcp
- 180 Words 4th GradeUploaded byMrityunjay Kumar Rai
- nptel gabion wall.pdfUploaded bysdutta2591
- The_Forgotten_Trigonometric_Functions.pdfUploaded bygranjero_mx
- Hypothesis TestingUploaded byMicaiah Das
- Watt ICDAR 2005 InkmlUploaded byfoglaabhishek
- ORFE Academic Guide 2014Uploaded byPrakhar Agarwal
- hw2_solUploaded bykumar rock
- MIT Ising ModelUploaded byAritra Lahiri
- e-gn-100.PDFUploaded bymoujahed
- MaxwellV12_onlinehelpUploaded bygianindio
- MULTI-OBJECTIVE APPROACH FOR EVALUATION OF FARMING SYSTEMS IN KUTTANAD REGION OF KERALA STATE, INDIA: A MODEL FOR DECISION MAKINGUploaded byDr. M.KRISHNAN
- Determination of molar mass practicalsUploaded byhaytham kenway
- Chapter 1Uploaded byModeradorNFU
- [IJCST-V4I1P21]:Amani K SamhaUploaded byEighthSenseGroup
- Stress-dependent permeability on tight gas reservoirsUploaded byAl Jawad
- Circuit TheoryUploaded byavi713331
- subtraction strategies that lead to regroupingUploaded byapi-171857844
- Rr410508 Mathematical Modelling and SimulationUploaded bySrinivasa Rao G
- SAMUEL ASANTE.pdfUploaded byNurul Ihsani
- Reaction Kinetics ( MPM )Uploaded byAlex Tan
- AppleUploaded bywaleed_124
- sprb176pUploaded bySamir Patil
- GST102Uploaded byNiyi Seidu
- Case Study 3 Supply Elasticity-22042018-ADIUploaded byzanariah
- Actel Architecture AnUploaded byrajansrajan
- Absolute Dan Relative ModeUploaded byanis
- 16MIS0350_VL2017181000858_DA02 (1)Uploaded byChitturi Arun Krishna 16MIS0350