str2poly

PURPOSE ^

STR2POLY Converts a string to a polynomial

SYNOPSIS ^

function [c, f] = str2poly(polystr)

DESCRIPTION ^

STR2POLY Converts a string to a polynomial

   [C, F] = STR2POLY(POLYSTR) Converts an input string POLYSTR with 
   terms of base variable 's' to a set of polynomial term coefficients C
   and respective exponents F. Fractional exponents are also accepted.

   Note: Coefficient and exponent arrays are sorted according to the
         values in the exponent array in descending order

   Example:

       [c, f]=str2poly('15s^3+2s+1')     returns c=[15 2 1] and f=[3 1 0]

   See also: poly2str

CROSS-REFERENCE INFORMATION ^

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