Digital filter is an important part of the digital signal processing. In order to design a digital filter, we need to calculate the filter coefficients. One of many tools that we can use to calculate the filter coefficients is by using the MATLAB function; ie FDAtool. Here step by step to calculate the filter coefficient and how to implement it to the Delph programming.
- Type fdatool in the command window of MATLAB
- Follows the response type, design method, filter order and specifications
- Click on the design filter button to generate the filter coefficients, and the filter coefficients are shown as follows:
- To convert four section of block filter to one section, you can use function Convert to Single Section on Edit menu.
- Here the example of the filter coefficients of one section
- Export the coefficients to the MATLAB cell so that we can easily copy and paste on main menu File.
- Click on the MATLAB cell on den and num variable to copy and paste
- Put the coefficients in the Delphi programming to develop the digital filter
- Here the example of digital filter implementation using IIR filter
- Here the result of the original and filtered signal
- Artificial sinus generator