Vector length / norm

Calculates the length (norm) of a vector. For matrices, computes the Frobenius norm.

Syntax

norm(Vector)
norm(Matrix)

Examples

Vector calculations

Vector operations and commands work as shown in the example.

Vector perpendicularity and parallelism

Vector problems can be solved by combining the solve command with vector commands. The image shows examples of perpendicular, parallel, and same-direction vectors.