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

compan (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

c = compan(a)

Description

Returns the companion matrix to a polynomial.

Examples

Inputs

Name Description
a Specifies the coefficients of a polynomial in descending order of power. The first element in a is the leading coefficient of the polynomial, which is 1 for a monic polynomial. Therefore, an input vector of size n produces a companion matrix of size (n-1)-by-(n-1). a is a vector.

Outputs

Name Description
c Returns the companion matrix of a. The size of c equals the order of a.

Examples

A = [1, 2, 3, 4]
C = compan(A)


Resources


 

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