<< Fourier Series (fstools) Fourier Series (fstools) fourierplot >>

Fourier Series (fstools) >> Fourier Series (fstools) > fourier

fourier

Calculates and Returns the fourier coefficients,'A0', 'An' and 'Bn'

Calling Sequence

[A0,A,B]=fourier(l,n,f)

Arguments

l

half of the period, such that the period is 2L (periodicity of the function f which is to be approximated by Fourier Series)

n

no. of Fourier Coefficients you want to calculate

f

function which is to be approximated by Fourier Series, make sure that the function is defined in the interval [-l,l]

A0

The first fourier coefficient.

A

An array/matrix whose nth element is the nth coefficient An.

B

An array/matrix whose nth element is the nth coefficient Bn.

Description

Calculates and Returns the fourier coefficients,'A0', 'An' and 'Bn'.

Examples

deff('a=f(x)','a=x');
[a,A,B]=fourier(2,5,f)

See Also


Report an issue
<< Fourier Series (fstools) Fourier Series (fstools) fourierplot >>