Learn R Programming

clusterGeneration (version 1.3.8)

genOrthogonal: Generate An Orthogonal Matrix

Description

Generate an orthogonal matrix with given dimension.

Usage

genOrthogonal(dim)

Value

An orthogonal matrix with dimension dim.

Arguments

dim

integer. Dimension of the orthogonal matrix.

Examples

Run this code
set.seed(12345)
Q = genOrthogonal(3)
print(Q)
A = Q 
print(A)

Run the code above in your browser using DataLab