Experiment 3: 'Enter The First Sequence'
Experiment 3: 'Enter The First Sequence'
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);
RESULT- The Circular Convolution Of the given sequence was drawn and its magnitude and phase spectrum plotted.