Why there is a difference between the dct computed by the MATLAB dct function and one computed by dct matrix multiplication?
2 ビュー (過去 30 日間)
古いコメントを表示
The result is different, though both methods give inverse transform correctly.
0 件のコメント
採用された回答
David Goodmanson
2018 年 2 月 26 日
編集済み: David Goodmanson
2018 年 2 月 26 日
Hi Mohsin,
x needs to be a column vector as you did, but you don't need to take the transpose of dctmtx:
x = 1:8
y1 = dct(x')
y2 = dctmtx(8)*x'
y1 - y2
x1 = idct(y1)
x2 = dctmtx(8)\y2
Same results, out and back.
その他の回答 (0 件)
コミュニティ
その他の回答 パワー エレクトロニクス コミュニティ
参考
カテゴリ
Help Center および File Exchange で Transforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!