Can I save the simout while running parsim after each worker completes its simulation?
조회 수: 14 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2019년 6월 18일
편집: MathWorks Support Team
2020년 12월 7일
Can I save the variables to a MAT file while running parsim after each worker completes its simulation?
채택된 답변
MathWorks Support Team
2020년 12월 7일
편집: MathWorks Support Team
2020년 12월 7일
이 답변에 Trent Gatz
님이 플래그를 지정함
Yes, it is possible by enabling the "LoggingToFile" and "LoggingFileName" options using the "setModelParameter" parameter.
in = in.setModelParameter('LoggingToFile', 'On', 'LoggingFileName', 'out.mat')
For more information look at the following documentation pages:
Please note that the SimulationInput objects and SimulationOutput objects can also be saved separately to a mat file and loaded into the workspace later. You can then use:
openSimulationManager(in, out)
to open the Simulation Manager UI. For more information, refer to:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Run Multiple Simulations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!