ORTHOGONALITY AND LEAST SQUARES
 

Orthogonal Vectors
Norm
Unit Vector
Orthonormal Vectors
Orthogonal Complement
Orthogonal Projection
Cauchy-Schwarz Inequality
Angle Between Two Vectors
Gram-Schmidt Process
QR Factorialization
Transpose
Symmetric and Skew-symmetric Matrices
Orthogonal Matrices
Least Squares Solutions
Matrix of an Orthogonal Projection
Norm
How to Examples Exercise
How to:
The norm of a vector refer to its length or magnitude. To find a vector's norm we simply take the square root of the dot product with itself:
     normV = sqrt(dot(v, v))

But MATLAB has simplified it even further and allows us just to type:
     normV = norm(v)
    

Examples:
Let's find the norm of the vector v = [3; 1; 2; 3; 1]. We input normV = sqrt(dot(v, v)) or normV = norm(v) and we get back normV = 5.


Exercise: