Version:

Syntax

h = hadamard(n)

n

Size of the Hadamard matrix you want to generate. n must be a power of 2, a power of 2 multiplied by 12, or a power of 2 multiplied by 20. n is a positive integer scalar.

h

Hadamard matrix of size n. h is a square matrix with elements of 1 and -1. All columns or rows are orthogonal to each other.

H = hadamard(4)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported