Code covered by the BSD License  

Highlights from
dctt

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 2.93 KB File ID: #18924

dctt

by Stephen Becker

 

25 Feb 2008 (Updated 26 Feb 2008)

type II DCT, improvement to matlab's dct

| Watch this File

File Information
Description

This code does the same as matlab's dct with a few improvements:

1) on the first call, it's a bit faster than the builtin dct

2) on subsequent calls, due to persistent variables, it's about 2x or more faster than the builtin dct, and only about 1.5x slower than a fft call

3) you can specify which version of the type II DCT you want: either matlab's orthogonal version, or the standard version (cf. fftw website, or wikipedia)

4) you can sample the "rows" of the (implicit) DCT matrix, i.e. sample the rows of the output

This complements the code "idctt".

The extra "t" at the end of the filename has no meaning other than to distinguish it from the builtin dct.

Acknowledgements
This submission has inspired the following:
idctt
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
spectral analysis Stephen Becker 22 Oct 2008 09:50:39
dct fft persistent sampling Stephen Becker 22 Oct 2008 09:50:39

Contact us at files@mathworks.com