Thread Subject: Matlab main windows name

Subject: Matlab main windows name

From: Norman

Date: 9 Nov, 2009 10:29:03

Message: 1 of 4

Hi,

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?

Greetings,
Norman

Subject: Matlab main windows name

From: Norman

Date: 11 Nov, 2009 08:53:03

Message: 2 of 4

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?

Thank you,
Norman

Subject: Matlab main windows name

From: Jan Simon

Date: 11 Nov, 2009 09:14:04

Message: 3 of 4

Dear Norman!

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

com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.setTitle('Matlab 1');

See also:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/262011

Good luck, Jan

Subject: Matlab main windows name

From: Norman

Date: 11 Nov, 2009 09:34:03

Message: 4 of 4

"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <hddv8r$ln0$1@fred.mathworks.com>...
> Dear Norman!

>
> com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.setTitle('Matlab 1');
>
> See also:
> http://www.mathworks.com/matlabcentral/newsreader/view_thread/262011
>
> Good luck, Jan

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.

Greetings, Norman

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
process id Norman 11 Nov, 2009 03:54:08
title name figu... Norman 9 Nov, 2009 05:34:03
rssFeed for this Thread
 

MATLAB Central Terms of Use

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.

Contact us at files@mathworks.com