Home   >   User Resources   >   Online Help   >   apaMatrix.FromVecl
 

 

Function index Version 3.0.0

apaMatrix.FromVecl(Vecl)

Excel=apaMatrix.FromVecl(Vecl)

Result

Turns a vecl vector, i.e. the lower vectorization of a square matrix excluding the main diagonal, into a matrix.

Syntax

Vecl: 1 x n vector containing the ordered elements, n = m*(m-1)/2 for an m x m matrix

Algorithm

The size of the matrix is derived from the number of elements as m = (1 + sqrt(1 + 8n)) / 2.

Remarks

The result is a lower triangular matrix with zeros on and above the main diagonal. To obtain a correlation matrix, use apaCorrels.FromVecl.