Documentation Center

  • Trial Software
  • Product Updates

Structure Operations Allowed for Code Generation

To generate efficient standalone code for MATLAB® structures, you are restricted to the following operations:

  • Define structures as local and persistent variables by assignment and using the struct function

  • Index structure fields using dot notation

  • Define primary function inputs as structures

  • Pass structures to local functions

Was this topic helpful?