% % Written by: % -- % John L. Weatherwax 2005-08-04 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % % Epage % %----- close all; clc; clear; X = [ 1, 2, 1; 0, 1, 1; 2, 1, 2 ]; % Construct the DCT matrix C by hand: % C = mk_DCT_matrix_C(size(X,1)); Y = C' * X * C; Y