Simulation slows down with open figures

조회 수: 3 (최근 30일)
Frank
Frank 2012년 1월 30일
Hi,
I execute a script that contains a loop to run simulations and plot the data in figures. The first run is very fast. Here the first set of plots is generated (13 plots). When the script does not close all plots with 'close all' simulation time is much longer, about factor 2. I can reproduce the same behavior by creating 10 empty figures and running the script. In this setup already the first run is slow.
It is very helpful for me to keep these plots open.
How can I run the sim quickly with open plots?
Matlab 2011b
Cheers, Frank.
  댓글 수: 2
Frank
Frank 2012년 2월 5일
Nobody else has the same problem???
Peter Scotson
Peter Scotson 2013년 3월 26일
Yes, I've the same problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

Peter Scotson
Peter Scotson 2013년 3월 26일
I've not found a solution, but this is my work-around. Separate the plot functions out. Run the simulations and save the data to a file, then load and plot later. On some earlier SIMULINK releases, I've found it useful to use the "TO FILE" rather than "TO WORKSPACE". It's as if it keeps more memory available, and hands the storage of data over to windows - might even use the otther processor core to do it.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by