poly_scale (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: linear systems

Requires: MathScript RT Module

Syntax

c = poly_scale(a, b)

Legacy Name: polyscale

Description

Scales the roots of a polynomial.

Details

Examples

Inputs

Name Description
a Specifies a polynomial.
b Specifies the scaling rate.

Outputs

Name Description
c Returns the scaled polynomial.

Details

In c = poly_scale(a, b), LabVIEW replaces the polynomial a*z^n+...+a[n-1]*z+a[n] with the new polynomial c*z^n+...+c[n-1]*z+c[n], where c = a, ..., c[n-1] = a[n-1]*b^(n-2), c[n] = a[n]*b^(n-1).

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 = rand(1, 6);
b = poly_scale(a, 2);
ra = roots(a);
rb = roots(b);
plot(real(ra), imag(ra), 'ro', real(rb), imag(rb), 'b*')