hObject, eventdata and handles doesn't appear in workspace

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?

Answers (1)

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.

Products

Asked:

on 8 Feb 2016

Commented:

on 8 Feb 2016

Community Treasure Hunt

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

Start Hunting!