MATLAB Program for the Generation of Linear Convolution for the given sequences | IT1254 - DSP and Communications Systems Lab



AIM:
        To write a program for the generation of Linear convolution for the given sequences by using MATLAB in IT1254 - DSP and Communications Systems Lab.

ALGORITHM:
Step 1: Start
Step 2: Read the first sequence
Step 3: Read the second sequence
Step 4: Perform convolution for both the sequences using conv() function
Step 5: Plot the sequence
Step 6: Display the output sequence
Step 7: Stop

SOURCE CODE:
clc;
x=input('Enter the sequence 1:');
h=input('Enter the sequence 2:');
y=conv(x,h);
figure;
subplot(3,1,1);
stem(x);
ylabel('Amplitude->');
xlabel('N->');
subplot(3,1,2);
stem(h);
ylabel('Amplitude->');
xlabel('N->');
subplot(3,1,3);
stem(y);
ylabel('Amplitude->');
xlabel('N->');
disp('The resultant signals:');

OUTPUT:
Click to view full size image!

RESULT:
   Thus the generation of Linear convolution was performed using MATLAB and the output sequences were drawn.
Previous
Next Post »

Still not found what you are looking for? Try again here.