Code covered by the BSD License  

Highlights from
MATLAB/Simulink for Digital Signal Processing

image thumbnail

MATLAB/Simulink for Digital Signal Processing

by

 

Many MATLAB codes for Digital Signal Processing

D=dctmtx_my(M)
function D=dctmtx_my(M)
% To generate the MxN DCT matrix 
D = [repmat(1/sqrt(M),1,M);
     sqrt(2/M)*cos([1:M-1].'*[1:2:2*M-1]*(pi/2/M))]; % Eq.(P11.2.4)

Contact us