fun2orth
Funtion to orthogonal polynomial basis.
Syntax
f = fun2orth(x, func, varargin)
Description
f = fun2orth(x, RHS, varargin) converts a polynomial from power basis
to choosen orthogonal basis using formulation pow2orth, or converts a
function to the choosen basis using orthogonal interpolation.
Inputs (required)
x = independent tau variable (itau object).
func = function to aproximate (string). Must be non vectorized.
Inputs (optional)
n = dimension to aproximate (integer).
Output
f = approximated coefficients (double vector).
f = fun2orth(x, RHS, varargin) converts a polynomial from power basis to choosen orthogonal basis using formulation pow2orth, or converts a function to the choosen basis using orthogonal interpolation.
Inputs (required)
x = independent tau variable (itau object).
func = function to aproximate (string). Must be non vectorized.
Inputs (optional)
n = dimension to aproximate (integer).
Output
f = approximated coefficients (double vector).
n = dimension to aproximate (integer).