fourierBasis
Fourier basis functions for tunable gain surface
Syntax
Description
You use basis function expansions to parameterize gain surfaces for tuning
gain-scheduled controllers. fourierBasis generates periodic Fourier
series expansions for parameterizing gain surfaces that depend periodically on the
scheduling variables, such as a gain that varies with angular position. Use the output
of fourierBasis to create tunable gain surfaces with
tunableSurface.
generates
a function that evaluates the first shapefcn = fourierBasis(N)N harmonics
of eiπx:
F is the function represented by shapefcn.
The term of F are the first 2*N basis
functions in the Fourier series expansion of a periodically varying
gain, K(x), with K(–1)
= K(1). That expansion is given by:
generates
an shapefcn = fourierBasis(N,nvars)nvars-dimensional Fourier basis for periodic
functions on the region [–1,1]nvars.
This basis is the outer product of nvars Fourier
bases with N harmonics along each dimension.
The resulting function shapefcn takes nvars input
arguments and returns a vector with (2*N+1)^(nvars-1)-1 entries.
To specify basis functions of multiple scheduling variables
where the expansions are different for each variable, use ndBasis.
Examples
Input Arguments
Output Arguments
Tips
If the gain surface
Kis periodic in the scheduling variable x with period P, make sure that the corresponding entry inK.Normalization.InputScalingis set to P/2 to ensure consistency with thefourierBasisperiod, P = 2. When using the default normalization, the x values inK.SamplingGridmust span exactly one period, [a, a+P], to satisfy this requirement. See theNormalizationproperty oftunableSurfacefor more details.
Version History
Introduced in R2015b