3. LINEAR CONVOLUTION OF TWO SEQUENCES
#1

Procedure:-
1. Read the input sequence, x[n] and plot
2. Read the impulse response of the system, h[n] and plot
3. Convolve the two results and plot them
Description:-
Linear Convolution involves the following operations.
1. Folding
2. Multiplication
3. Addition
4. Shifting
These operations can be represented by a Mathematical Expression as follows:
y[n] =  x[k]h[n-k]

x[ ]= Input signal Samples
h[ ]= Impulse response co-efficient.
y[ ]= Convolution output.
n = No. of Input samples
h = No. of Impulse response co-efficient.

Eg: x[n] = {1, 2, 3, 4}
h[k] = {1, 2, 3, 4}

Where: n=4, k=4. : Values of n & k should be a multiple of 4.
If n & k are not multiples of 4, pad with zero’s to make
multiples of 4
r= n+k-1 : Size of output sequence.
= 4+4-1
= 7.
r= 0 1 2 3 4 5 6
n= 0 x[0]h[0] x[0]h[1] x[0]h[2] x[0]h[3]
1 x[1]h[0] x[1]h[1] x[1]h[2] x[1]h[3]
2 x[2]h[0] x[2]h[1] x[2]h[2] x[2]h[3]
3 x[3]h[0] x[3]h[1] x[3]h[2] x[3]h[3]
Output: y[r] = { 1, 4, 10, 20, 25, 24, 16}.
MATLAB program for linear convolution
Code:
clear
clc
close all
% FIRST SEQUENCE IS X WITH TIME INDEX NX
x = [1 2 3 4];
nx =0:3;
% SECOND SEQUENCE IS H WITH TIME INDEX NH
h = [1 2 3 4];
nh =0:3;
% CONVOLUTION RESULT
y = conv(x,h);
% CORRESPONDING TIME INDEX CALCULATION
ny = [nx(1) + nh(1) : nx(length(x)) + nh(length(h))];

% PLOT THE TWO SEQUENCES AND THE CORRESPONDING CONVOLUTION OUTPUT
subplot(3,1,1);
stem(nx,x);
xlabel('n-->');
ylabel('x-->');
title('First Sequence');
grid on;

subplot(3,1,2);
stem(nh,h);
xlabel('n-->');
ylabel('h-->');
title('Second Sequence');
grid on;


subplot(3,1,3);
stem(ny,y);
xlabel('n-->');
ylabel('y-->');
title('Linear Convolved Sequence');
grid on;

disp('First Sequence is    :'); x
disp('Time  index is    :'); nx
disp('Second sequence is   :'); h
disp('Time index is     :'); nh
disp('Linear Convolution is:'); y
disp('Time index is        :'); ny

RESULT: - LINEAR CONVOLUTION OF TWO SEQUENCES
[attachment=13327]
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: convolution calculator online, ppt on linear equation in two, convolution of two discrete sequences with examples, vhdl code for linear convolution ppt download, car hire canada access sequences, linear convolution using vedic maths, linear convolution two given sequence program in matlab,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  CIRCULAR CONVOLUTION OF TWO SEQUENCES seminar class 1 4,772 21-11-2012, 12:18 PM
Last Post: seminar details
  CIRCULAR CONVOLUTION OF TWO FINITE LENGTH SEQUENCES USING DFT AND IDFT seminar class 1 9,458 21-11-2012, 12:18 PM
Last Post: seminar details
  To perform multiple sequence alignment between the given sequences using Clustalw2 to smart paper boy 0 1,393 10-08-2011, 02:44 PM
Last Post: smart paper boy
  To perform global alignment between the given sequences using EMBOSS tool. smart paper boy 0 1,352 10-08-2011, 02:43 PM
Last Post: smart paper boy
  To perform local alignment between the given sequences using EMBOSS tool. smart paper boy 0 1,286 10-08-2011, 02:41 PM
Last Post: smart paper boy
  Study the working of half adder for two binary digits addition seminar class 0 2,132 13-05-2011, 04:45 PM
Last Post: seminar class
  LINEAR CONVOLUTION seminar class 0 2,285 06-05-2011, 03:52 PM
Last Post: seminar class
  CIRCULAR CONVOLUTION seminar class 0 1,989 06-05-2011, 03:52 PM
Last Post: seminar class
  LINEAR CONVOLUTION OF TWO FINITE LENGTH SEQUENCES USING DFT AND IDFT seminar class 0 3,321 06-05-2011, 03:40 PM
Last Post: seminar class
  Algebraic Methods of solving simultaneous pair Linear Equations in Two Variables seminar class 0 2,842 26-04-2011, 10:40 AM
Last Post: seminar class

Forum Jump: