Thread Subject: Matlab main windows name

Subject: Matlab main windows name

From: Norman

Date: 9 Nov, 2009 10:29:03

Message: 1 of 5

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 5

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 5

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 5

"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

Subject: Matlab main windows name

From: Norman

Date: 5 May, 2010 06:10:22

Message: 5 of 5

Hi,

I have to add something to my last post here:

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

On my WinXP machine I just use "feature('getPID')" and I get the windows process ID I looked for (using Matlab 2007b).

Thanks to Yair Altman and his website at http://undocumentedmatlab.com !

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
undocumented Norman 5 May, 2010 02:14:07
altman Norman 5 May, 2010 02:14:07
process id Norman 11 Nov, 2009 03:54:08
title name figu... Norman 9 Nov, 2009 05:34:03
rssFeed for this Thread

Contact us at files@mathworks.com