Filter - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SignalProcessing

  

Filter

  

filter a signal with a finite impulse response filter

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

Filter( A, a, b )

Parameters

A

-

Array of real numeric values; the signal to filter

a

-

Array of real numeric values; the Array of IIR coefficients

b

-

(optional) Array of real numeric values; the Array of FIR coefficients

Options

• 

container : Array, predefined Array for holding results

Description

• 

The Filter( A, a, b ) command filters the signal (sample) in the array A using the IIR coefficients in the array a and the FIR coefficients in the array b. If b is omitted, no FIR filter is applied (there is only a single coefficient, 1).

• 

Before the code performing the computation runs, the input Arrays are converted to datatype float[8] if they do not have that datatype already. For this reason, it is most efficient if the input Arrays have this datatype beforehand.

• 

If the container=C option is provided, then the results are put into C and C is returned. With this option, no additional memory is allocated to store the result. The container must be an Array of size equal to the size of A and having datatype float[8].

Thread Safety

• 

The SignalProcessing[Filter] command is thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing:

withplots:

AGenerateTone128,1,0.05,3.0:

aArray1..3,13,13,13,datatype=float8,order=C_order:

bArray1..1,1,datatype=float8,order=C_order:

BFilterA,a,b:

displayArraySignalPlotA,SignalPlotB

Compatibility

• 

The SignalProcessing[Filter] command was introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

SignalProcessing[FiniteImpulseResponseFilter]

SignalProcessing[InfiniteImpulseResponseFilter]