Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8966533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:02:35+00:00 2026-06-15T17:02:35+00:00

I am using matlab R2012a (7.14.0.737) 64-bit on a windows 7 PC. I have

  • 0

I am using matlab R2012a (7.14.0.737) 64-bit on a windows 7 PC.
I have 2 monitors. I want to be able to open a matlab GUI figure up on the 2nd monitor (on the left).

at the command line opening figures there works fine.

h = figure( ... , 'position',[some -value on the other screen y w h)

but the GUI figure is always made on the 1st monitor despite 1) the correct position values entered into the GUI window properties and/or 2) using the code

set( hObject, 'position',[some -value on the other screen y w h)

in the GUI opening function.

However, if I place this code in the output function it’s ok. inelegant as you see the figure appear and then move over. the values in the GUI are set the way i want them to be too. just ignored by matlab it seems. Any ideas?

  • update *

I have since read that matlab calls movegui(fig, 'onscreen') when opening a guide-created figure. arg. I suppose now the issue is how to override that, or how to set ‘onscreen’ to be the other monitor. Still no solution on this end

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:02:36+00:00Added an answer on June 15, 2026 at 5:02 pm

    This cannot be done directly from within GUIDE.

    Workaround

    Export your figure: GuideMenu -> File -> Export

    Replace the line:

    movegui(gui_hFigure,'onscreen');
    

    with:

    set(gcbf, 'position',[some -value on the other screen y w h)
    

    For me (R2012a), this shows up around line 330 of the exported GUI:

    ...
      % openfig (called by local_openfig below) does this for guis without
      % the LayoutFcn. Be sure to do it here so guis show up on screen.
      movegui(gui_hFigure,'onscreen');   %% COMMENT OUT OR REPLACE THIS LINE
    else
      gui_hFigure = local_openfig(gui_State.gui_Name, 
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an assignment to create a GUI using MATLAB GUIDE and am having
I'm using 64 bit matlab r2010a on windows 7 (this may be relevant if
I'm using MATLAB R2012a with a dual-screen setup, so I have the command window
I am getting started with using MEX files for MATLAB (R2012a) compiled from C
Using MATLAB, I have this code: value = input('>> Enter a value: '); and
I have been using Matlab 2011b and contourf/contourfm to plot 2D data on a
I'm using Matlab to solve a differential equation. I want to force ode45 to
I'm used to working in Matlab using its full GUI environment. Due to license
I'm trying to connect to MySQL using MATLAB R2009b 64 bit and the mysql.cpp
I have Matlab .m script that sets and trains Neural network (nn) using Matlab's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.