I want to make some function calls to non-code generation capable functions in my MATLAB block in my model in Simulink 7.7 (R2011a). I thought that I can do this by using the CODER.EXTRINSIC declaration, but when I do this, I still get various error messages. As an example, in triscatteredinterp_simulink_nogood.mdl, the following error occurs if I create an object 'F' via the TRISCATTEREDINTERP function (which was declared to be extrinsic), and then try to access 'F':
Subscripting into an mxArray is not supported. Function 'Embedded MATLAB Function' (#83.277.285), line 18, column 6: "F(qx,qy)" Launch diagnostic report.
Best Answer