hadamard
Hadamard matrix
Syntax
h = hadamard(n)
Arguments
- n
real scalar. Must be 1, 2 or multiple of 4.
- h
n x n matrix
Description
h = hadamard(n) returns the Hadamard matrix of order n
.
The Hadamard matrix is a matrix containing only 1's and -1's whose the columns are orthogonal. The matrix must verify H*H' = n*eye(n,n)
.
The Hadamard matrix is based on several tools: Sylvester's construction (construction by iteration used Kronecker product) and Paley's construction I and II.
Examples
h = hadamard(4)
See also
- toeplitz — Toeplitz matrix (chosen constant diagonal bands)
History
Version | Description |
2025.1.0 | Introduction in Scilab. |
Report an issue | ||
<< frank | Matrix generation | hankel >> |