evan058

Callback Example

Apr 18th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.21 KB | None | 0 0
  1. function [] = main()
  2.  
  3. variable = '';
  4.  
  5.     function myCallBack()
  6.         %Do some magic triggered by the buttonclick
  7.        
  8.         %Store magic output in variable in main's scope
  9.         variable = 'magic output';
  10.     end
  11.  
  12. end
Advertisement
Add Comment
Please, Sign In to add comment