Problem 930. 1D DCT-II transform.
Solution Stats
Problem Comments
-
1 Comment
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.
Solution Comments
-
2 Comments
who can read this?!!!
I could. A week ago, that is. :)
Problem Recent Solvers18
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
4513 Solvers
-
Get the length of a given vector
6139 Solvers
-
Parse string and identify specific string sequence in algebraic equation
51 Solvers
-
Find the elements of a matrix according to a defined property.
75 Solvers
-
Sum the entries of each column of a matrix which satisfy a logical condition.
145 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!