How to pass data from .m file to GUI ?
Show older comments
Hello everyone,
It is my major concern. I would like not to use global variables to this. I have an .m file where have a command:
set(handles.statusbar,'String','foobar');
And then I get the error that the handles are not defined. I know. I just look for the exact function, which would define in my scope (the .m file) the handles to my precious GUI.
I would appreciate your help! Michał
2 Comments
Geoff Hayes
on 14 Jun 2014
Michal - you may need to attach your GUI .m and .fig file which may reveal why the code is behaving in this manner.
Where in the code have you added the statement set(handles.statusbar,'String','foobar');? Is it in a callback where handles is an input? If you don't want to attach your code, then at the very least, please include the complete function (signature and body) that includes this statement.
Michal Dobrzanski
on 14 Jun 2014
Accepted Answer
More Answers (2)
Image Analyst
on 15 Jun 2014
0 votes
Categories
Find more on App Building 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!