dctm_four.m
来自「生成DCT矩阵,只要简单输入矩阵的阶数,就可以返回一个用语DCT变换的矩阵」· M 代码 · 共 8 行
M
8 行
%this program is for the call of the dct transform matrix of type -1111
function dctm_four=dctm2(n)
for p=0:(n-1)
for q=0:(n-1)
t(p+1,q+1)=(2/n)^(1/2)*cos(pi*(q+1/2)*(p+1/2)/n);
end
end
dctm_four=t
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?