blob: 8f9565b26bf5111f250e29c72ccc7bd1e21931f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Caption: Program to compute discrete cosine tranform
//Example4.10
//page 198
clc;
N =4; //DCT matrix of order four
X = dct_mtx(N);
disp(X,'DCT matrix of order four')
//Result
//DCT matrix of order four
//
// 0.5 0.5 0.5 0.5
// 0.6532815 0.2705981 - 0.2705981 - 0.6532815
// 0.5 - 0.5 - 0.5 0.5
// 0.2705981 - 0.6532815 0.6532815 - 0.2705981
|