basis2basis

change of basis.


Syntax
   f = basis2basis(from, to, coef, domain)

Description
   f = basis2basis(varargin) changes from one polynomial basis to another
   

Inputs
   from      = in (orthogonal polynomial) basis:
               1 or 'ChebyshevT' to Chebyshev of first kind, 
               2 or 'ChebyshevU' to Chebyshev of second kind, 
               3 or 'LegendreP' to Legendre, 
               4 or 'HermiteH' to Hermite and
               5 or 'LaguerreL' to Laguerre.
   to        = out (orthogonal polynomial) basis;
   coef      = vector of coefficients.
   domain    = domain [a b] of orthogonality.

Output
   f         = vector of the out basis coefficients.