0% found this document useful (0 votes)
104 views

Experiment 3: 'Enter The First Sequence'

The document describes an experiment to perform circular convolution on two sequences using MATLAB. It explains that circular convolution can be faster than linear convolution for long sequences. The procedure involves opening MATLAB, writing a program to take in two sequences, perform circular convolution on them using cconv, and display the output. The program takes in two sequences, convolves them circularly, and plots the result.

Uploaded by

Tanmay Saxena
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views

Experiment 3: 'Enter The First Sequence'

The document describes an experiment to perform circular convolution on two sequences using MATLAB. It explains that circular convolution can be faster than linear convolution for long sequences. The procedure involves opening MATLAB, writing a program to take in two sequences, perform circular convolution on them using cconv, and display the output. The program takes in two sequences, convolves them circularly, and plots the result.

Uploaded by

Tanmay Saxena
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

EXPERIMENT 3 AIM-To Obtain Circular convolution of Two sequences.

APPARATUS-MATLAB R2007b, PC THEORYCIRCULAR CONVOLUTIONCircular convolution is used to convolve two discrete Fourier transforms (DFT) sequences. For very long sequences, circular convolution may be faster than linear convolution.c = cconv (a,b,n) circularly convolves vectors a and b. n is the length of the resulting vector. If you omit n, it defaults to length (a) +length (B)-1. When n = length (a) +length (B)-1, the circular convolution is equivalent to the linear convolution computed with conv. You can also use cconv to compute the circular cross-correlation of two sequences. PROCEDURE1) Open Matlab 2) Open New M File 3) Write the program Code 4) Save, Compile, Run the program 5) For Output See Figure window PROGRAMclc x = input('enter the first sequence'); subplot(3,1,1); stem(x); h=input ('enter the sequence'); Subplot (3, 1, 2); stem(h);

a=length(x); b=length(h); N=max(a,b); v=cconv(x,h,N); subplot(3,1,3); stem(v); OUTPUT-

RESULT- The Circular Convolution Of the given sequence was drawn and its magnitude and phase spectrum plotted.

You might also like