Gui shows up in 2013 but not in 2015.

I have a matlab .m file that opens a .fig file. in matlab 2013 this shows up just fine when i run the .m file. it has buttons and lists on it. when i try to open the same .m file in matlab 2015 al i get is a blank window with the right title. no buttons or anything. when i open the .fig file in 2015 it is also blank.
Picture on left is in matlab 2015, picture on right is matlab 2013
see

 Accepted Answer

Up to R2014a, uicontrol always showed up on top of everything else. In R2014b and later, uicontrol follow the same stacking rules as everything else.
If you check your .fig carefully you will find that you have a uipanel that is on top of your uicontrol. One way that can happen is if you accidentally set the parent of the uicontrol to be the figure itself instead of being the uipanel.

1 Comment

Thank you so much. i was able to open the figure in guide in 2013. then i checked the Object Browser and found the uipanel. i changed the uipanel visibility to off and that worked perfect. All of the buttons show up and the they work as well.

Sign in to comment.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!