hObject, eventdata and handles doesn't appear in workspace
Show older comments
hi, i create a simple gui with pushbutton. when i run it and press the pushbutton, hObject, eventdata, handles doesn't appear in workspace. in case i put a break point in the body of this callback function the hObject, eventdata, handles does appear. does anyone encounter this problem?
2 Comments
Every callback function has its own workspace:
If you need to pass the data to another callback or workspace:
avishay orbach
on 8 Feb 2016
Answers (1)
Adam
on 8 Feb 2016
0 votes
They shouldn't appear in the workspace. They appear in the scope of the callback function only. All functions have their own variable scope with only input and output arguments causing these to move between workspaces (excluding the ghastly use of global variables or assignin type operations).
Why do you want them in your workspace? What are you trying to do with them? Whatever it is should be in the body of that callback function.
Categories
Find more on Whos in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!