hObject, eventdata and handles doesn't appear in workspace
1 view (last 30 days)
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
Answers (1)
Adam
on 8 Feb 2016
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.
0 Comments
See Also
Categories
Find more on Interactive Control and Callbacks 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!