blob: 5ca6fbe49e9329b2345d71fe4093498f35e6bf55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example 3.26
//Program to Compute the Linear Convolution of the following Sequences
//x[n]=[1,-1,1]
//h[n]=[2,2,1]
clear;
clc ;
close ;
x=[1,-1,1];
h=[2,2,1];
//Convolution Computation
y= convol(x,h);
//Display sequence y[n] in command window
disp(y,"y[n]=");
|