I have written an Embedded MATLAB script in which the main function calls a subfunction and passes an array as one of the arguments. I wish to ensure that the arguments are passed by reference and not passed by value when the Embedded MATLAB script is compiled into C code.
MATLAB: How to pass arrays by reference to an Embedded MATLAB subfunction from an Embedded MATLAB script in Simulink 7.1 (R2008a)
emlsimulink
Related Question
- Does the generated code contain temporary copies of the inputs if the model contains an Embedded MATLAB function with subfunctions when using Real-Time Workshop Embedded Coder 5.0 (R2007b)
- Single-Instance vs Multi-Instance Embedded Coder
- Can anybody explain such a function handle in Matlab
- [] appears after a function
Best Answer