Owning Class: linalgebra
Requires: MathScript RT Module
k = norm(a)
k = norm(a, type)
Computes the norm of a vector or matrix.
| Name | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| a | Specifies a vector or matrix of double-precision, floating-point or complex double-precision, floating-point numbers. | ||||||||||||||
| type | Specifies the norm type. type is a scalar or string. If a is a matrix, type accepts the following values.
|
| Name | Description |
|---|---|
| k | Returns the norm type of a. |
A = [1, 2, 3; 4, 5, 6; 7, 8, 9]
C = norm(A, 'fro')