often I'm starting several Matlabs at once to work on different parts of a single problem. Every Matlab opens a set of figures to display current status and a GUI to control the program (e.g. 'pause' and 'stop' buttons).
But since I don't have a dozen monitors *g* I become confused which "Control GUI" controls which Matlab. So I thought that I could set the name of all the figures so that there's a unique references number for each Matlab. But the Matlab main window can't be changed that way (set(handle,'Name','someTexthere')) - or is there a way to do?
Since there seems to be no solution I wonder if I can read the Windows (XP) process ID somehow to identify a Matlab. Probably a small C programm could do that (but of course I need the ID of the calling Matlab process not that of the c programm), but I don't know how. Can anyone help me?
> often I'm starting several Matlabs at once to work on different parts of a single problem. Every Matlab opens a set of figures to display current status and a GUI to control the program (e.g. 'pause' and 'stop' buttons).
> But since I don't have a dozen monitors *g* I become confused which "Control GUI" controls which Matlab. So I thought that I could set the name of all the figures so that there's a unique references number for each Matlab. But the Matlab main window can't be changed that way (set(handle,'Name','someTexthere')) - or is there a way to do?
Great, it works! Thank you very much, Jan! In the meantime I have read that the Windows idea of a parent ID is dubiuos at least so I dropped my hope until now.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.