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?

Antworten (1)

Adam
Adam am 8 Feb. 2016

0 Stimmen

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.

Produkte

Gefragt:

am 8 Feb. 2016

Kommentiert:

am 8 Feb. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by