How could I continue working on source files while code running and generating figures?
9 views (last 30 days)
Show older comments
Hi,
I'm using Matlab 2014a. With an older version of Matlab (2010a, I think), I was able to continue working with editor on source files while the program was processing, running previous saved code and generating figures that go on the task bar of Windows 7. Now, I still can access to the editor but barely unable to do anything because figures generated allways popup. Is there a trick, a parameter to change, in Matlab, in Windows?
Thanks,
Yves
0 Comments
Accepted Answer
Guillaume
on 25 Feb 2015
Edited: Guillaume
on 25 Feb 2015
Matlab is single threaded, so while it's busy doing something (e.g. processing), it can't do something else (e.g. update the editor). There's no workaround, that's how it's designed.
The simplest solution: start a second instance of matlab, where you'll do your editing.
2 Comments
Guillaume
on 25 Feb 2015
If I remember correctly, 2014a already included part of the new graphical engine (hg2) which is significantly slower than the old one. Possibly, this is the reason you get less cpu time for the UI.
More Answers (1)
Sean de Wolski
on 25 Feb 2015
Create invisible figures so that they don't come up. Then when you're ready to see the figures, turn them all to visible
% Create invisible figure
fig = figure('visible','off');
surf(peaks)
Turn all to visible
set(findall(0,'type','figure'),'visible','on')
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!