hObject, eventdata and handles doesn't appear in workspace
Ältere Kommentare anzeigen
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 Kommentare
Every callback function has its own workspace:
If you need to pass the data to another callback or workspace:
avishay orbach
am 8 Feb. 2016
Antworten (1)
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.
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!