<< fourier Fourier Series (fstools)

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

fourierplot

Plots the fourier series approximation of hte given periodic function and also 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

Plots the fourier series approximation of hte given periodic function and also returns the fourier coefficients,'A0', 'An' and 'Bn'

Examples

deff('a=f(x)','a=x');
[A0,A,B]=fourierplot(2,100,f)

See Also


Report an issue
<< fourier Fourier Series (fstools)