Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Using multiple displays

Subject: Using multiple displays

From: Jomar Bueyes

Date: 02 Aug, 2007 19:55:03

Message: 1 of 4

Dear Matlab-ers,

Is there a way to have Matlab display figures on a screen other than
the main display and/or to let Matlab know that there are two screens?
I am currently using two displays on a laptop and the second display
is much larger, so I'd like the figures to show in that display. The
only way I've been able to do it is to move the figures by hand to the
second display, the next time the Matlab script is run, the figures
are already open and they are refreshed on the second monitor.

Thanks,

Jomar

Subject: Re: Using multiple displays

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 02 Aug, 2007 20:18:18

Message: 2 of 4

In article <1186084503.195534.135860@x35g2000prf.googlegroups.com>,
Jomar Bueyes <jomarbueyes@hotmail.com> wrote:

>Is there a way to have Matlab display figures on a screen other than
>the main display and/or to let Matlab know that there are two screens?
>I am currently using two displays on a laptop and the second display
>is much larger, so I'd like the figures to show in that display. The
>only way I've been able to do it is to move the figures by hand to the
>second display, the next time the Matlab script is run, the figures
>are already open and they are refreshed on the second monitor.

After you move one of the figures by hand, get() the Position
property of the moved figure and see if it gives you anything
useful. Create a second figure and set it's Position to the
same as the first figure and see if it gets moved to the second screen.

Also, check what you get back for get(0,'ScreenSize')
--
  There are some ideas so wrong that only a very intelligent person
  could believe in them. -- George Orwell

Subject: Re: Using multiple displays

From: Jomar Bueyes

Date: 02 Aug, 2007 20:47:55

Message: 3 of 4

On Aug 2, 3:18 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)
wrote:
> In article <1186084503.195534.135...@x35g2000prf.googlegroups.com>,
> Jomar Bueyes <jomarbue...@hotmail.com> wrote:
>
> >Is there a way to have Matlab display figures on a screen other than
> >the main display and/or to let Matlab know that there are two screens?
> >I am currently using two displays on a laptop and the second display
> >is much larger, so I'd like the figures to show in that display. The
> >only way I've been able to do it is to move the figures by hand to the
> >second display, the next time the Matlab script is run, the figures
> >are already open and they are refreshed on the second monitor.
>
> After you move one of the figures by hand, get() the Position
> property of the moved figure and see if it gives you anything
> useful. Create a second figure and set it's Position to the
> same as the first figure and see if it gets moved to the second screen.
>
> Also, check what you get back for get(0,'ScreenSize')
> --
> There are some ideas so wrong that only a very intelligent person
> could believe in them. -- George Orwell


Hi George,

Thank you for your response. The get(0, 'screensize') gives the width
of the two monitors added and the height of the largest one. With
Figure 1 filling out the 2nd monitor, get(1, 'position') gives the
horizontal position as one pixel more than the 1st monitor size. I'm
not sure how the vertical position relates to the size of the
monitors. I guess I could use this information to programatically set
the position of the figures on the 2nd monitor. It would be
cumbersome, but it would work.

BTW. I did not mention before. I'm using Matlab 7.4 under Mac OS 10.4.

Thanks again

Jomar.

Subject: Re: Using multiple displays

From: us

Date: 02 Aug, 2007 22:27:52

Message: 4 of 4

Jomar Bueyes:
<SNIP from <walter> to <george>...

>> <walter>'s stuff... ending with a quote...
>> There are some ideas so wrong that only a very
intelligent person could believe in them -- George Orwell

> Hi George...

now this is truly <orwellian>...
us

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
humor us 02 Aug, 2007 18:30:41
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
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 Disclaimer prior to use.
Related Topics