MATLAB Answers

Debug in coder.extrinsic

1 view (last 30 days)
Qingyu
Qingyu on 15 Jun 2020
Edited: Qingyu on 15 Jun 2020
Hi, I use 'coder.extrinsic' in the 'Matlab function' block of Simulink.
However, the debugging is inconvenient.
Here is a simple example.
coder.extrinsic('abcd')
[c,d]=abcd(a,b)
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?

  0 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by