Structure Operations Allowed for Code Generation
To generate efficient standalone code for MATLAB® structures, you are restricted to the following operations:
Index structure fields using dot notation
Define primary function inputs as structures
Pass structures to local functions