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. :)
Program an exclusive OR operation with logical operators
Back to basics 4 - Search Path
Vectorizing, too easy or too hard?
Determine Whether an array is empty
I've got the power! (Inspired by Project Euler problem 29)
Compute Hamming distances between each pair of rows from two input matrices
Create a "map" of 2D wavelet coefficients
Rearrange coefficients after block based DCT transform.
Compute hamming distance between two binary vectors represented using lists of 1-byte numbers
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office