__mgorth__
- :
[y, h] =__mgorth__(x, v)¶ Orthogonalize the column vector x against the columns of v using the modified Gram-Schmidt process, then scale the remainder to unit length.
The columns of v are expected to be orthonormal. The row vector h holds the projection coefficients onto each column of v followed by the norm of what is left, so that
v*h(1:end-1).' + y*h(end)reproduces x. If nothing is left, y is a column of zeros.