summaryrefslogtreecommitdiff
path: root/52/CH3/EX3.21/Example3_21.sce
blob: a2e9eb126f22e723c11a90ddc14a4697f9cd1257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 3.21
//Program to Compute Linear Convolution of following sequences
//x[n]=[1,2,-1,2,3,-2,-3,-1,1,1,2,-1]
//h[n]=[1,2]
clear;
clc ;
close ;
x=[1,2,-1,2,3,-2,-3,-1,1,1,2,-1];
h=[1,2];
// Linear Convolution Computation
y=convol (x,h);
//Display Sequence y[n] in command window
disp(y,"y[n]=");