Hi, I use 'coder.extrinsic' in the 'Matlab function' block of Simulink.
However, the debugging is inconvenient.
Here is a simple example.
If there is a bug in 'abcd.m', then the Simulink Diagnostic Viewer will show the corresponding error, say, 'size mismatch'. However, it does not show in which line the error is. If 'abcd.m' is a huge function, it would take a long time to locate the bug.
Is there a better way to debug extrinsic functions in Simulink?