Next: , Previous: , Up: Octave Functions and Scripts   [Contents][Index]


5.107 unvech

Function File: m = unvech (v, scale)

Performs the reverse of vech on the vector v.

Given a Nx1 array v describing the lower triangular part of a matrix (as obtained from vech), it returns the full matrix.

The upper triangular part of the matrix will be multiplied by scale such that 1 and -1 can be used for symmetric and antisymmetric matrix respectively. scale must be a scalar and defaults to 1.

See also: vech, ind2sub, sub2ind_tril.