<< gallery Elementary matrices hankel >>

Scilab Help >> Funções Elementares > Elementary matrices > hadamard

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

History

VersionDescription
2025.1.0 Introduction in Scilab.

Report an issue
<< gallery Elementary matrices hankel >>