gistlib
other matlab categories
dot-product code snippets in matlab
inner product of any two vectors x and y in rn. that is, the inputs are x and y and n; the output is (x, y) = x ^t y. in matlab in matlab
v1 = x ∥x∥2 , w2 = y − αv1, v2 = w2 ∥w2∥2 . find the formula for α such that (v1, w2) = (v1, v2) = 0. then, v1, v2 form a unit orthogonal basis for the sub-space spanned by x and y in matlab
gistlib
by LogSnag