Save data from Simulink Scope
조회 수: 14 (최근 30일)
이전 댓글 표시
I have checked "Log data to workspace" in the Simulink Scope under the Logging pane, but after running the simulation, no data are saved to the workspace.
Is there any additional setting required to ensure that the data are stored correctly?

Thank you
댓글 수: 2
채택된 답변
Paul
2025년 11월 29일
편집: Paul
2025년 11월 29일
"I have this setting: is it correct?"
It's correct if you want all of your logged variables to be contained within a single variable called "out". Uncheck the box if you'd rather have all of your logged variables be sent to the workspace individually.
"[ScopeData1] is strored inside [the variable named] out?"
Yes
"How to get data out and plot again the same way as on oroginal scope 'cause when right clickng there is no option to plot ? ... something as plot(ScopeData1)"
For plotting:
plot(out.ScopeData1)
For access more generally, see:
See Simulink.Simulation.Dataset for how to work with datasets. Or, change the Save Format in the Logging properties of the scope to an alternative format if preferred.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

