GUIDE, help to get around GUI inconsistencies

1 view (last 30 days)
Hi,
I have some problems with a GUI application that I've developed in GUIDE. Whenever I open it on a new Matlab version or on a different platform it looks like crap. Sometimes the controls have moved so far I cannot reach them in the GUIDE editor. I've realized and also read here that GUIDE is a terrible poorly functional mess. But it would be nice to know if anyone knows a solution to the problem other than rewriting my code and never use GUIDE again.
I've tried to copy all positions and units from a functioning version and loading that but without success. I use Matlab 2010 and 2012 on windows and linux.
Best, Anders

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 10 Feb 2013
If your code is not big. rename your m-file, then create a new m-file with your fig-file. Then copy the content of your functions and test them one by one.
  1 Comment
Azzi Abdelmalek
Azzi Abdelmalek on 10 Feb 2013
Edited: Azzi Abdelmalek on 10 Feb 2013
  1. rename your first file file1.m to file2.m,
  2. then delete file1.m, or move it to another folder.
  3. run you gui file1.fig. Matlab will generate a new m-file file1.m
  4. try to copy from the old file (file2.m) the code you've added to each button or object, one by one, until the gui works fine

Sign in to comment.


Image Analyst
Image Analyst on 10 Feb 2013
Your app will look different on different computers due to differences in video adapters and their settings. It may help if you set the "units" property of all your controls to 'normalized.'
It's well known that GUIDE is primitive, especially by today's standards. They are working on an upgrade to it (and have been for many years). I hope to see it soon but they aren't giving an ETA on that.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!