simulink to workspace vs to file which is faster
3 次查看(过去 30 天)
显示 更早的评论
I am running long simulink simulations.
That are taking days to run. I see the memory getting eaten alive on my computer.
The model is not complex but logging a lot of data over a long period.
Is there any advantage to log to a file instead of a workspace?
There are to workspace blocks and to file blocks.
Which is faster?
0 个评论
回答(1 个)
Walter Roberson
2023-12-18
Logging to workspace is faster than logging to file.
However, if you log to file then if you interrupt the execution then you will still have (most of) the log file. And logging to workspace runs the risk of running out of memory.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!