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

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

 Respuesta aceptada

Guillaume
Guillaume el 25 de Feb. de 2015
Editada: Guillaume el 25 de Feb. de 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 comentarios

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
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.

Iniciar sesión para comentar.

Más respuestas (1)

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 comentario

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

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Feb. de 2015

Comentada:

el 25 de Feb. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by