poly2str

PURPOSE ^

POLY2STR Converts a polynomial array set to a string

SYNOPSIS ^

function [polystr] = poly2str(a, na, baseVar)

DESCRIPTION ^

POLY2STR     Converts a polynomial array set to a string

 Usage:

   POLYSTR = POLY2STR(A, NA) where A is term coefficients vector
             and NA is the corresponding term exponents vector

   POLYSTR = POLY2STR(A, NA, BASEVAR) uses BASEVAR as base variable

   Note: Coefficient and exponent arrays are sorted according to the
         values in the exponent array in descending order prior to
         generate a polynomial string

   Examples:

        poly2str([1 -2 3], [0.5 1 0])      returns '-2s+s^0.5+3'
        poly2str([5 1 -9], [1.5 7 3], 'z') returns 'z^7-9z^3+5z^1.5'   

   See also: str2poly

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 27-Aug-2015 23:54:49 by m2html © 2005