Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
resources:eval:user-guides:ad-fmcomms2-ebz:software:filters [09 Jan 2021 00:32] – user interwiki links Robin Getzresources:eval:user-guides:ad-fmcomms2-ebz:software:filters [12 Feb 2021 09:51] (current) Ioana Chelaru
Line 357: Line 357:
 </code> </code>
  
-Given the tap number //N//, the required response on passband and stopband (//A1// and //A2//), as well as the corresponding weights (//W1// and //W2//), we can now use fdesign.arbmag (([[mw>help/signal/ref/fdesign.arbmag.html|Arbitrary response magnitude filter specification object]]))+Given the tap number //N//, the required response on passband and stopband (//A1// and //A2//), as well as the corresponding weights (//W1// and //W2//), we can now use fdesign.arbmag (([[mw>help/dsp/ref/fdesign.arbmag.html?searchHighlight=fdesign.arbmag&s_tid=srchtitle|Arbitrary response magnitude filter specification object]]))
 function to design the TFIR filter. In the following piece, //B//=2, which means there are two bands in the design. function to design the TFIR filter. In the following piece, //B//=2, which means there are two bands in the design.
  
Line 436: Line 436:
 ==== Generating C/C++ Source Code From MATLAB ==== ==== Generating C/C++ Source Code From MATLAB ====
  
-For convenience, an example script called ''generate_internal_designer.m'' is provided in the repository to generate C/C++ source and optionally compile a DLL.  This script utilizes the ''coder.Config'' class to configure MATLAB Coder.  For additional configuration options not used in the script consult [[mw>/help/coder/ref/coder.codeconfig-class.html|coder.CodeConfig]].  MATLAB Coder can be used to generate source code only, compile the generate code into a library, or compile external code with the newly generated code.\\+For convenience, an example script called ''generate_internal_designer.m'' is provided in the repository to generate C/C++ source and optionally compile a DLL.  This script utilizes the ''coder.Config'' class to configure MATLAB Coder.  For additional configuration options not used in the script consult [[mw>help/coder/ref/coder.codeconfig.html?searchHighlight=coder.codeconfig-class&s_tid=srchtitle|coder.CodeConfig]].  MATLAB Coder can be used to generate source code only, compile the generate code into a library, or compile external code with the newly generated code.\\
  
 In the provided script, which we show a portion of here, a ''coder.config'' object is created and configured to generate C code with the majority of the code output to a single file. We disable binary compilation and turn off OpenMP calls which are enabled by default.  Since MATLAB Coder requires knowledge of input types they are provided as the ''args'' input to the codegen call. In the provided script, which we show a portion of here, a ''coder.config'' object is created and configured to generate C code with the majority of the code output to a single file. We disable binary compilation and turn off OpenMP calls which are enabled by default.  Since MATLAB Coder requires knowledge of input types they are provided as the ''args'' input to the codegen call.
resources/eval/user-guides/ad-fmcomms2-ebz/software/filters.txt · Last modified: 12 Feb 2021 09:51 by Ioana Chelaru