Main Content

Define Inputs Programmatically in the MATLAB File

You can use the MATLAB® assert function to define properties of entry-point function inputs in your MATLAB entry-point files.

To instruct the MATLAB Coder™ app to determine input types from the assert statements in your code, on the app toolbar, click . Select Determine input types from code preconditions. If you enable this option:

  • The app labels all entry-point function inputs as Deferred. It determines the input types at compile time.

  • In this project, you cannot use other input specification methods to specify input types.

See Define Input Properties Programmatically in the MATLAB File.


If you enable fixed-point conversion (requires a Fixed-Point Designer™ license), the app disables the Determine input types from code preconditions option.