Calls the top level MATLAB(R) function from a source file.

The Call MATLAB Function is expandable and shows data types for the wired inputs and outputs. You can configure the Call MATLAB Function to specify the MATLAB session, source path, and function name.

The Call MATLAB Function is not supported on real-time or FPGA targets.


icon

Inputs/Outputs

  • cgnrn.png session in

    session in specifies a reference to the MATLAB session.

  • cpath.png source file path

    source file path specifies the absolute path to the source .m file.

  • cerrcodeclst.png error in (no error)

  • cpoly.png return type

  • cpoly.png input parameter

  • ignrn.png session out

    session out returns a reference to the MATLAB session.

  • ierrcodeclst.png error out

  • ipoly.png return value

  • ipoly.png

  • Supported Data Types

    The Call MATLAB Function supports the following data types:

    • Numerics
    • Arrays, including multi-dimensional arrays.
      Note 1D arrays are converted to Row Vectors in MATLAB.
    • Strings
    • Clusters
    • Booleans