Clear Filters
Clear Filters

hObject is not created when running GUIDE *.m file - what can be done?

2 views (last 30 days)
please see snap shot below:
I'm using MATLAB 2013b.
It's works perfectly fine in MATLAB 2015 and above.
What could be the cause of this? I need to compile my GUI in MATLAB 2013, but for some reason it doesn't want to "create" any hObject & handles objects...
What can be done?
Mark Golberg
Mark Golberg on 24 Nov 2020
this is how it looks in MATLAB 2015. You can see hObject is 1x1 Figure, and NOT a single value int.
Rik on 24 Nov 2020
I don't see the issue. At some point the handle to objects was no longer exposed to the user, but treated as an object. None of the syntax became incompatible because of that.
ans = 'matlab.ui.Figure'
There are many reasons to avoid GUIDE, but this specific 'issue' is not one of them.

Sign in to comment.

Accepted Answer

Jan on 24 Nov 2020
The m-files created by GUIDE are not compatible with other Matlab versions You can expect such troubles.
Mark Golberg
Mark Golberg on 26 Nov 2020
Thank you Jan, that was it.
BTW, strangely enough, m-file that was created by GUIDE in MATLAB 2020, opened in MATLAB 2017 quite fine...
Thanks. Unfortunately it's a legacy APP with thousands of code lines... not so simple to switch to APP Designer at the moment...
Rik on 26 Nov 2020
AppDesigner is only one other option, but I understand your problem.

Sign in to comment.

More Answers (0)


Find more on Migrate GUIDE Apps 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!