필터 지우기
필터 지우기

How to reduce the time required to execute Simulink.sdi.clear?

조회 수: 4 (최근 30일)
Andrea Amorosi
Andrea Amorosi 2021년 12월 6일
답변: Dhruv 2024년 5월 1일
I'm comparig a lot of simulation result using Simulink.sdi.compareRuns inside a for loop.
At the end of each cycle I have to run Simulink.sdi.clear to avoid memory being fullfilled.
I've seen that the greatest part of execution time is taken by the Simulink.sdi.clear execution.
Is there any way to improve it?

답변 (1개)

Dhruv
Dhruv 2024년 5월 1일
Hi Andrea,
To minimize the execution time of 'Simulink.sdi.clear' in your workflow, ensure that you are only logging essential data, which reduces the volume of data needing clearance.
Implement batch processing for your comparisons to decrease how often you need to clear the Simulation Data Inspector (SDI). Efficient memory management within MATLAB and structuring your workflow to limit unnecessary data accumulation can also help.
Additionally, staying updated with the latest MATLAB release version can provide performance improvements and new functionalities that may help optimize the clearing process.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by