0% found this document useful (0 votes)
9 views2 pages

Convolution of Non-Causal Sequences in MATLAB

The document outlines an experiment to compute the convolution of two non-causal sequences using MATLAB. It provides the sequences x(n) and h(n), the MATLAB code for performing the convolution, and the resulting output. Additionally, it includes a plot of the resultant convolution y(n).
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Convolution of Non-Causal Sequences in MATLAB

The document outlines an experiment to compute the convolution of two non-causal sequences using MATLAB. It provides the sequences x(n) and h(n), the MATLAB code for performing the convolution, and the resulting output. Additionally, it includes a plot of the resultant convolution y(n).
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Signal & System Lab Exp No-02

AIM:-

Write a program to compute Convolution of non causal sequence.

x(n)={1,2,3,1} & h(n)={1,2,1,-1}


↑ ↑

SOFTWARE REQUIRED:-

MATLAB SOFTWARE.

PROGRAM:-

>> x=[1,2,3,1];nx=[0:3];
>> h=[1,2,1,-1];nh=[-1:2];
>> nyb=nx(1)+ nh(1);
>> nye=nx(length(x)) + nh(length(h));
>> ny=[nyb:nye];
>> y=conv(x,h)
>> stem(ny,y);
RESULT: -

y= 1 4 8 8 3 -2 -1

Department of Electronics & Communication


Signal & System Lab Exp No-02

Plot of resultant Convolution y(n)=x(n)*h(n)

Department of Electronics & Communication

You might also like