D

MATLAB and GoldwaveSupport Tools

This appendix gives a brief description of the use of MATLAB and Goldwave in support of the exercises in this book. Their use is also described at various other points in the preceding chapters.

D.1 fdatool FOR FIR FILTER DESIGN

MATLAB’s filter design and analysis tool fdatool makes use of MATLAB functions, for example, cheby1() (see Chapter 5), that can be called from the MATLAB command line but integrates them with a graphical user interface (GUI) for the design and analysis of filters. It is invoked by typing

≫ fdatool

at the MATLAB command line.

Three MATLAB functions dsk_fir67(), dsk_sos_iir67(), and dsk_sos_iir67int() are provided in the folder Support on the CD accompanying this book. These can be used in conjunction with fdatool to create coefficient files for use with a number of example programs.

Example D.1: Design of FIR Bandstop Filter Using fdatool and dsk_fir67()

This example describes how the filter coefficient file bs2700f.cof, used in Example 4.4, was created.

Enter the fdatool parameters shown in Figure D.1 to design an FIR bandstop filter centered at 2700 Hz. The filter uses N = 89 coefficients and the Kaiser window function. Select FileExport and then set the parameters Export to, Export as, and Variable Names to Workspace, Coefficients, and bs2700, respectively. Click on Export. At the MATLAB command line, type

≫ dsk_fir67(bs2700)

and enter the filename bs2700f.cof.

The resultant coefficient (.cof) file is listed in

Get Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.