CIRCULAR CONVOLUTION OF TWO FINITE LENGTH SEQUENCES USING DFT AND IDFT
#1

Procedure:-
1) Find the length of the first sequence x[n]=x_length
2) Find the length of the first sequence h[n]=h_length
3) Take the circular convolution order as N
4) If x_length < N, pad enough number of zeros to x[n], so that the number of samples in the modified x[n]=N
5) If h_length < N ,pad enough number of zeros to h[n], so that the number of samples in the modified h[n]=N
6) Take DFT for modified x[n]=x(k)
7) Take DFT for modified h[n]=H(k)
8) Compute Y(K)=X(K)*H(K)
9) Compute y(n)=IDFT(Y(k))
10) Verify if y[n]=conv(x,h)

MATLAB program for circular convolution using DFT and IDFT
Code:
clear
clc
close all
% FIRST SEQUENCE X1
x1 = [2 3 4 1];
nx1 = 0:length(x1)-1;
n1 = length(x1);
subplot(3,1,1);
stem(nx1,x1);
xlabel('n-->');
ylabel('x1-->');
title('First Sequence');
grid on;

% SECOND SEQUENCE X2
x2 = [1 1 2 1];
nx2 = 0:length(x2)-1;
n2 = length(x2);
subplot(3,1,2);
stem(nx2,x2);
xlabel('n-->');
ylabel('x2-->');
title('Second Sequence');
grid on;

% CIRCULAR CONVOLUTION ORDER IS N
N = 4;
% if N > length(x1) or length(x2) zero pad
newx1 = [x1,zeros(1,N-n1)];
newx2 = [x2,zeros(1,N-n2)];

% TAKE DFT OF FIRST SEQUENCE
x1dft = fft(newx1);
% TAKE DFT OF SECOND SEQUENCE
x2dft = fft(newx2);

% MULTIPLY THE TWO DFTS
ydft = x1dft .* x2dft

% TAKE IDFT OF THE PRODUCT OF TWO DFTS
disp('Response obtained by DFTs')
y = ifft(ydft)
n = 0:length(y)-1;
subplot(3,1,3);
stem(n,y);
xlabel('n-->');
ylabel('x2-->');
title('circularly convoluted Sequence');
grid on;
%  VERIFICATION WITH DIRECT CONVOLUTION
m = [0:N-1];
for n = 0:N-1,
    g(n+1) = sum(x2(mod(n-m,N)+1).*x1);
end;
g
RESULT:-
CIRCULAR CONVOLUTION USING DFT AND IDFT

Reply
#2


to get information about the topic "circular convolution of different length sequences" full report ppt and related topic refer the page link bellow

http://studentbank.in/report-circular-co...t-and-idft


http://studentbank.in/report-circular-co...-sequences
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
Tagged Pages: compute the circular convolution of the following sequences using dft and idft h n 1 2 3 4 x n 1 2 2 1, circular convolution in dft and idft, circular convolution using dft and idft, circular convolution using dft idft, circular convolution matlab code using dft and idft, circular convolution using dft in matlab, circular convolutuon using dft n idft,
Popular Searches: circular convolution flowchart for dsp matlab, plotting circular convolution, laser length measurement, n point dft program code, circular convolution using matlab by for loop, dft calculator online, length measurements,

[-]
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,755 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,381 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,343 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,279 10-08-2011, 02:41 PM
Last Post: smart paper boy
  Program to Encrypt and decrypt a text data using RSA algorithm smart paper boy 0 2,522 10-08-2011, 11:43 AM
Last Post: smart paper boy
  To create a Java Bean to draw various graphical shapes and display it using smart paper boy 0 1,939 21-07-2011, 09:40 AM
Last Post: smart paper boy
  Study the working of half adder for two binary digits addition seminar class 0 2,123 13-05-2011, 04:45 PM
Last Post: seminar class
  Study the working of RS flip-flop using NAND gates and NOR gates and compare them seminar class 0 5,117 13-05-2011, 04:36 PM
Last Post: seminar class
  Study working of Ex-OR gate using basic gates and testing of IC 7486 seminar class 0 2,176 13-05-2011, 04:13 PM
Last Post: seminar class
  Study the construction of basic gates using NAND gates and NOR gates seminar class 0 3,553 13-05-2011, 04:03 PM
Last Post: seminar class

Forum Jump: