title: Function handle using `set` function MATLAB
body: <p>I'm working at GUI in MATLAB application.
  I use <a href="http://www.mathworks.com/help/matlab/ref/uitable.html;jsessionid=f787950e0b79f74452e1ab71e378" rel="nofollow"><code>uitable</code></a> object. Then I find interesting <a href="http://undocumentedmatlab.com/blog/uitable-sorting" rel="nofollow">undocumented feature</a> how to sort it's data, select whole row and etc.</p>
  
  <p>I do this way:</p>
  
  <pre><code>% create jhandle to my uitable object
  juiTable = findjobj(handles.uitable1,'class','UIScrollPane');
  jtable = juiTable(1).getComponent(0).getComponent(0);
  %... some my action like this:
  jtable.setRowSelectionAllowed(true);
  %...
  
  %and now lets try use callback for selected cell in uitable:
  juiFunHandle = handle(jtable, 'CallbackProperties');
  
  set(juiFunHandle, 'MousePressedCallback', @CellSelectionCallback);
  set(juiFunHandle, 'KeyPressedCallback', @CellSelectionCallback); 
  </code></pre>
  
  <p>That works perfectly.</p>
  
  <p><strong>Now question:</strong> how to put multiple parameters to <code>CellSelectionCallback</code>?
  I want this function makes some action (makes some button active etc).
  For this I try to put GUI <code>handles</code> to it. But how?</p>
  
  <p>My <code>CellSelectionCallback</code> function:</p>
  
  <pre><code>function CellSelectionCallback(juiTable, varargin)
  % get it from the example
  row = get(juiTable,'SelectedRow')+1;
  fprintf('row #%d selected\n', row);
  </code></pre>
  
  <p>P.S. I see <code>varargin</code> into it. So can I use multiple arguments? How to put it using my <code>set</code> function??</p>