I have a "Data Store Read" block as the input to a "MATLAB function" block.

This is the function in my "MATLAB function" block:

`function myMFunction(myDataStore)coder.ceval('myCFunction', myDataStore);`

Generating code results in the following:

`tmp[0] = myDataStore[0];tmp[1] = myDataStore[1];tmp[2] = myDataStore[2];myCFunction(tmp);`

instead of:

`myCFunction(myDataStore);`

## Best Answer