Why am I unable to find the logged data from Scope block in the MATLAB workspace in R2019a?
65 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2019-4-19
编辑: MathWorks Support Team
2023-11-17
In R2019a, it seems that selecting "Log data to workspace" of the Scope block does not actually log the data to the MATLAB workspace as in old releases.
I have also tried using the To Workspace block and the behavior is the same. What setting has been changed in R2019a?
采纳的回答
MathWorks Support Team
2023-11-17
编辑:MathWorks Support Team
2023-11-17
This behavior is expected in R2019a.
Starting from R2019a, the default setting of "Single simulation output" option has been changed from 'off' to 'on':
Therefore, Simulink returns all simulation outputs to MATLAB within a single SimulationOutput object, which include signal, state, output, DSM logging, and scope and toworkspace block logging. If not specified, the variable is named as out.
To get the outputs in separate variables as before, you need to uncheck this option.
0 个评论
更多回答(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!