blob: aab5c7ac98e4d44ce595e86190667d9385e82e71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Caption: 2-D Linear Convolution
//Example3.1 & Example3.4
//page 85 & page 107
clc;
x =[4,5,6;7,8,9];
h = [1;1;1];
disp(x,'x=')
disp(h,'h=')
[y,X,H] = conv2d2(x,h);
disp(y,'Linear 2D convolution result y =')
//Result
//Linear 2D convolution result y =
//
// 4. 5. 6.
// 11. 13. 15.
// 11. 13. 15.
// 7. 8. 9.
|