How could I continue working on source files while code running and generating figures?

9 views (last 30 days)
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

Accepted Answer

Guillaume
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
Yves St-Onge
Yves St-Onge on 25 Feb 2015
Bonjour Guillaume,
Ok, it's a good idea. I started a second instance of Matlab to run the program, and working on the first opened editor to keep bookmark, crtl-z, etc... ;-) It works! (ok le taskbar clignote en fou mais c'est pas grave)
Thanks a lot!
But it's still not answer why I could do with my older version? (maybe I should check again if I'm not wrong)
Yves
Guillaume
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.

Sign in to comment.

More Answers (1)

Sean de Wolski
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')
  1 Comment
Yves St-Onge
Yves St-Onge on 25 Feb 2015
Thank you for the tips!
It works fine with a quick test in the command window but I have to find the way to put it in my project program. :-)
Yves

Sign in to comment.

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!