Skip to content

hadamard

special-matrix · scripts/special-matrix/hadamard.m

: H = hadamard (n)

Return the n-by-n Hadamard matrix (entries +1 and -1 with H*H' == n*eye (n)).

n must be of the form p * 2^k with p one of 1, 12, 20 or 28 and k >= 0. The result is always of class double.