|
|
|
|
|
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: |