- https://www.mathworks.com/matlabcentral/answers/70055-how-to-display-values-from-and-embedded-matlab-function-in-stateflow
- https://www.mathworks.com/matlabcentral/answers/7520-display-current-value-of-embedded-matlab-function-variable
Why is embedded Matlab function no longer outputting to screen during runtime if I leave a semi-colon out at end of line. This use to work for debugging.
2 次查看(过去 30 天)
显示 更早的评论
I have a new install of Matlab 2020a. I've just noticed that if I leave out a semi-colon at the end of a line in an embedded Matlab function in simulink, it is no longer outputting the answer of the line to the screen. This use to work in older version of Matlab. Is there a setting that would enable this in the new 2020a?
0 个评论
回答(1 个)
Priysha LNU
2020-10-7
Try displaying values using "DISP" or set breakpoints in the Embedded MATLAB Function.
For debugging an Embedded MATLAB Function block, try selecting "Enable Debugging" from the Debug menu.
Related MATLAB Answers links :
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!