Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

companion (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: linalgebra

Requires: MathScript RT Module

Syntax

c = companion(a)

Legacy Name: compan

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.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

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


 

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