


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