A fair warning to the challenger: the requested DCT-II is the orthogonal version, which means it needs to be multiplied by sqrt(2/N) where N is the size of the row, and the first element of the DCT x0 needs to be multiplied by 1/sqrt(2). It took me a while to understand. Wikipedia's formula is almost right, but it is missing those terms, which are mentioned only further below. Look at MATLAB's documentation (DCT-2), https://www.mathworks.com/help/signal/ref/dct.html, to find the proper formula.
who can read this?!!!
I could. A week ago, that is. :)
Make an N-dimensional Multiplication Table
115 Solvers
192 Solvers
Cody Computer Part 2 - Get the license number of Cody Computer
53 Solvers
Find Index of maximum Value and maximum Value of a vector
146 Solvers
371 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!