note: 
I'm doing OOP with handle classes and "this" refers to the object itself.
e.g. 
 classdef MyClass < handle
 ... 
 methods
 ...
 function this = myfunc(this, hObject)
 this.whatever = get(hObject,'property');
 end
 ...
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!