Used in image compression, the haar transform is an alternative to the DCT transformation. This file compute an n*n Haar matrix. (same use as "dctmtx")
Thank you for this function!
don't use "inf" as a variable name!!!!
nice one.rhis is my work:
h(k+1,i+q*t1) = (2^(p/2))/sqrt(N);
Properly constructs the Haar matrix. The code is not vectorized, but this is fine because you only need to call the function once and can reuse the matrix from that point onward.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.