title: H must be the handle to a figure or figure descendent Matlab
body: <p>I'm calling GUI function in matlab's <code>classdef</code>but it gives error of "H must be the handle to a figure or figure descendent." in  <code>guihandles(GUI);</code>
  How can I call function of GUI in matlab's class?
  The working of the class is perfect by the way, but it gives error then figure is closed.
  My class code:</p>
  
  <pre><code>classdef GUIclass &lt; handle  
  
      properties (Access = private)
          gui_h;
      end
      methods
  
          function obj = GUIclass
              guihandles(GUI);
          end
  
      end
  
  
  end
  </code></pre>