 Instead of computing the vector u"k" as

it is computed as

This method is used in the previous animation, when the intermediate v'3 vector is used when orthogonalizing the blue vector v3.The following MATLAB algorithm implements the modified Gram–Schmidt orthonormalization for Euclidean Vectors.The vectors v1, ..., v"k" (columns of matrix V, so that V(