i

© All Rights Reserved

9 views

i

© All Rights Reserved

- HACCP Principles
- DIP Quiz 2 & 3 Solution
- Signal and System
- Systemics and Cybernetics in a Historical Perspective
- Project 1
- Math 95 Test 1 Review
- Feedforward on Temperature Control Systems.
- CS 2403 — DIGITAL SIGNAL PROCESSING.pdf
- Signal 2015
- Programming Lab 4
- CV Filipa Castro FEUP Career Fair.pdf
- PEGPEC03
- IJSRDV3I110455.pdf
- Using Excel to Calculate Grades - Many Cool Ticks
- 2014 ENGR2002 InstrumentationandControls April 2014
- Convolution
- Ahorro Tiempo Montaje
- Literature_Review_of_Organizational_Chan.pdf
- 2 Solution SME3233 TEST2 2009201001 Solution
- 9A5301 Mathematical Foundations of Computer Science

You are on page 1of 5

AIM:To write a program in MATLAB to perform linear Convolution between two discrete time sequences

PROGRAM:

clc;

clear all;

close all;

m=length(x);

n=length(h);

x=[x,zeros(1,n)];

subplot(2,2,1), stem(x);

xlabel('---->n');

ylabel('---->x(n)');grid;

h=[h,zeros(1,m)];

subplot(2,2,2), stem(h);

xlabel('---->n');

ylabel('---->h(n)');grid;

y=zeros(1,m+n-1);

for i=1:m+n-1

y(i)=0;

for j=1:m+n-1

if(j<i+1)

y(i)=y(i)+x(j)*h(i-j+1);

end

end

end

subplot(2,2,[3,4]),stem(y);

xlabel('---->n');

ylabel('---->y(n)');grid;

OUTPUT :

RESULT : The linear convolution of two sequences is verified by using MATLAB program.

b)Auto Correlation

PROGRAM :

clc;

clear all;

close all;

%% Inputs

% You can specify the inputs or can take them through command window

h=[1 1 2 3 4];

x=[1 3 5 7 9 2 4 6 8];

pp=h;qq=x;

%%

x= [x zeros(1,l)];

h= [h zeros(1,l)];

end

end

end

y=y';

OUPUT:

RESULT:

c)Cross Correlation

PROGRAM :

close all;

clear all;

clc;

x=input('enter the value of 1st sequence');

j=input('enter the value of 2nd sequence');

h=fliplr(j);

disp('the 1st sequence is-');

disp(x);

disp('the 2nd sequence is-');

disp(j);

lx=length(x);

lh=length(h);

n=lx+lh-1;

subplot(3,1,1);

stem(x);

title('1st sequence');

subplot(3,1,2);

stem(j);

title('2nd sequence');

hh=[h zeros(1,n-lh)];

xx=zeros(n);

xx(1:lx,1)=x;

for i=2:n

for j=2:n

xx(j,i)=xx(j-1,i-1);

end;

end;

yy=xx*hh';

subplot(3,1,3);

stem(yy);

disp('cross correlate o/p->');

disp(yy');

title('y=cross correlation of x & j');

OUPUT:

RESULT:

- HACCP PrinciplesUploaded byBRIGHT DZAH
- DIP Quiz 2 & 3 SolutionUploaded byMd Saidur Rahman Kohinoor
- Signal and SystemUploaded byTapan Kumar Pradhan
- Systemics and Cybernetics in a Historical PerspectiveUploaded byprometheus71
- Project 1Uploaded byEngr. Naveed Mazhar
- Math 95 Test 1 ReviewUploaded byJesseMeier
- Feedforward on Temperature Control Systems.Uploaded byHayden Lovett
- CS 2403 — DIGITAL SIGNAL PROCESSING.pdfUploaded byvelkarthi92
- Signal 2015Uploaded byCS & IT
- Programming Lab 4Uploaded byArvinthran Thennarayasu Krishnan
- CV Filipa Castro FEUP Career Fair.pdfUploaded byFilipa Castro
- PEGPEC03Uploaded byAugusto Manuel
- IJSRDV3I110455.pdfUploaded byInternational Journal for Scientific Research and Development - IJSRD
- Using Excel to Calculate Grades - Many Cool TicksUploaded byscribdlertoo
- 2014 ENGR2002 InstrumentationandControls April 2014Uploaded bytsegay
- ConvolutionUploaded byDanial Sadiq
- Ahorro Tiempo MontajeUploaded byhuguer1
- Literature_Review_of_Organizational_Chan.pdfUploaded byvaijayanthi
- 2 Solution SME3233 TEST2 2009201001 SolutionUploaded byEswaran Parameswaran
- 9A5301 Mathematical Foundations of Computer ScienceUploaded bysivabharathamurthy
- intercultural-service learning paperUploaded byapi-341089353
- Tabla Transformadas PropiedadesUploaded byYarith Lopez
- Stability AnalisisUploaded byMarco Gallardo
- A Dynamic Decoupling Control Approach and Its Applications to Chemical Processes (ACC2007) (1)Uploaded byHữu Dương
- Talolong River in Lopez Quezon Basis for Project LILIUploaded byJV Villanueva
- Tutorial 06Uploaded bymoon blood
- Questions for the SeminarUploaded bySupratik Datta
- 8_2 Decoupling ControlUploaded byWaqas Kiani
- DSP LAB MANUAL Jan 2018 final print.pdfUploaded byAafaq Wani
- CMakeLists.txtUploaded byCarlos Ríos

- 4_5967505592028234393Uploaded byanji.guvvala
- User_ NMMS.pdfUploaded byanji.guvvala
- esp8266-V10Uploaded bylalonader
- All ServiceUploaded byanji.guvvala
- Landmine Detection Using Impulse Ground Penetrating RadarUploaded byanji.guvvala
- Crack InterviewUploaded bynshivegowda
- 6 data configuration.pdfUploaded byanji.guvvala
- Cdma Network Plan zj0924.pptUploaded byanji.guvvala
- C Programming Mat V4 1Uploaded byAnonymous ovq7UE2Wz
- ME GATE-2018 Sol Shift-2 QualifyGateUploaded byVishnu
- ARM MCQsUploaded byaravind_elec5654
- Brain Contollrd Car PptUploaded byanji.guvvala
- 4. B.tech. ECE R15 Regulations 3rd and 4th Year Course Structure and Syllabus on 23rd March 2017Uploaded byanji.guvvala
- C-16 DECE 25-01-2017-minUploaded byprembiharisaran
- Mpmc r15 Ece Manual 2019Uploaded byanji.guvvala
- 2014 Lasker Awards MatLab EtcUploaded byanji.guvvala
- At the Entrance of a University in South Africa the Following Message Was Posted for ContemplationUploaded byanji.guvvala
- 5_6195128705413546000Uploaded byanji.guvvala
- Micro Strip Patch Antenna and Its Applications a SurveyUploaded byAlicia Cruz
- IRJET-V2I680Uploaded byanji.guvvala
- Formatting RequirementsUploaded byanji.guvvala
- Density Based Traffic Light SystemUploaded byguptasawan
- Technical ModelUploaded byanji.guvvala
- PaperUploaded byanji.guvvala
- MadhuriUploaded byanji.guvvala
- dsp lab 3Uploaded byanji.guvvala
- dsp lab 2Uploaded byanji.guvvala
- dsp lab 1Uploaded byanji.guvvala
- EceUploaded byanji.guvvala

- KOW Media DeckUploaded byMeghan Ann Gruszynski
- Introduction to CorrosionUploaded bymdrizwanuddin
- HFM 11 Certification SyllabusUploaded bysuri1700
- legUploaded bylucas
- Toshiba 37XV635D Service ManualUploaded bylucas
- Ltr to Judge WoodsUploaded byAlan Jules Weberman
- Elastic bucklingUploaded byIstvan Wunderlich
- Hybrid Magrav Generator v1Uploaded byTudor Vasile
- Weld-Lines.pdfUploaded bybaominh007
- Roddy McCorley by McGuinn, RogerUploaded byGutenberg.org
- Rick Perry's Letter to HHS Secretary Kathleen SebeliusUploaded bystefanieasmith
- PN3-PRO-HSE-010 Work Permit System_Rev 04Uploaded byaymenmoataz
- commissioningUploaded byfar_faisal
- Manual Instalacao SMARTBOXUploaded byfcbrant
- KEY TERMS – CHAPTER 10 Organizing OrganizationalUploaded bydaovansang
- 3Com-400498.pdfUploaded bycuti
- Perpetual pavementsUploaded byjayaramrddy
- 18679234 NTPC 6 Weeks Project ReportAnkushUploaded byNikhil Rai
- Trusses with MathematicaUploaded byBogdan Tanasoiu
- Micro Finance the paradigm shiftUploaded byPrateek Goel
- Installing 11g Warehouse BuilderUploaded byvalabojuv
- Specification ReportUploaded byAisel Skariah
- DS-TI Tower InternalsUploaded bychris
- It Strategy ProjectUploaded byUjval Bucha
- Yamaha Dgx-530 (User Guide)Uploaded byLooser234
- Concept of Management in IslamUploaded byDaud Iskandar
- Spring Constant - Soil Structure InteractionUploaded byIngeniero Estructural
- erivativesUploaded bySarvesh Singh
- Internship ReportUploaded bybiplob
- One StepUploaded byJose Miguel Gonzalez