Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

norm (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the linalgebra class.

Syntax

k = norm(a)

k = norm(a, type)

Description

Computes the norm of a vector or matrix.

Examples

Inputs

Name Description
a Specifies a vector or matrix.
type Specifies the norm type. type is a scalar or string that accepts the following values.

1 Computes the 1-norm.
2 (default) Computes the Euclidean norm.
inf Computes the max-norm.
'fro' Computes the Frobenius norm. If a is a vector, the norm type cannot be 'fro'.

Outputs

Name Description
k Returns the norm type of a.

Examples

A = [1, 2, 3; 4, 5, 6; 7, 8, 9]
C = norm(A, 'fro')

Related Topics

normest


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit