MATLAB Interface - MATLAB Interface - 7.2 English - PG149

FIR Compiler LogiCORE IP Product Guide (PG149)

Document_ID
PG149
Release_Date
2026-07-22
Version
7.2 English

A MEX function and MATLAB software class are provided to simplify the integration with MATLAB. The MEX function provides a low-level wrapper around the underlying C model, while the class file provides a convenient interface to the MEX function.

Compiling

Source code for a MATLAB MEX function is provided. This can be compiled within MATLAB by changing to the directory that contains the code and running the make_fir_compiler_v7_2_mex.m script.

Installation

To use the MEX function, the compiled MEX function must be present on the MATLAB search path. This can be achieved in either of two ways:

  • Add the directory where the compiled MEX function is located to the MATLAB search path (see the MATLAB addpath function).
  • Copy the files to a location already on the MATLAB search path.

    As with all uses of the C model, the correct C model libraries also need to be present on the platform library search path (that is, PATH or LD_LIBRARY_PATH).