Matlab .m files, based on GUI, not rendering properly

Hi All,
I am working on MATLAB R2013a. Everything works fine except for some .m files which have a GUI component. When I run these files the GUI window doesn't pop up. It shows on my taskbar, but when I click on it, it just doesn't pop up.
In another instance (a different .m file) the GUI pops up, but doesn't align properly on the screen. 1/4 th of it is outside the screen and when I try to pull it down, it just wouldn't work. It doesn't re-size/restore so I can't align it that way either.
I was using Windows 8 earlier, so I thought that might be a problem. Because these .m files work fine on my friends' computer, which had Windows 7. Then I installed Win 7 on my laptop, but the problem still persists.
I changed the Matlab verison to no avail. Please help!

 Réponse acceptée

Adam
Adam le 18 Déc 2014
Modifié(e) : Adam le 18 Déc 2014

0 votes

I suspect the Position property of your figure in Guide is set to something that causes it to be positioned off screen in those cases it doesn't show at all, but does appear in the task bar because it has been launched.
If you want to be sure change the units to normalized for the figure and use numbers < 1 for the position and size (the maths is obvious for how to position a figure in normalised units).
You can stick with one of the other units but then it is a bit more difficult to ensure it is positioned on-screen. Pixels are easiest if you don't want normalised units as you can get your screen size in pixels and do the maths.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange

Question posée :

KVD
le 18 Déc 2014

Commenté :

KVD
le 18 Déc 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by