Unable to view function workspace variables in MATLAB function block in Simulink

3 次查看(过去 30 天)
I set a breakpoint inside of my MATLAB function block, and was expecting to be able to see the function's local workspace variables, however they are all blank. In the command console there is a <<debug and I can manually type the variable and it will print its contents, however this is not what I want to be forced to do. There is no option to select a different function call stack from "base." Why can I not view these in the workspace?
  2 个评论
Walter Roberson
Walter Roberson 2018-1-17
What Acceleration mode are you using? In any mode other than Acceleration off, MATLAB Function Blocks are compiled and so might not have the same workspace structure.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by