title: Abstract superclass for both handle and non-handle subclass
body: <p>I need to know if there is a way in matlab to define interface superclass for both handle and non-handle subclasses? If in hierarchy there is a handle class, all classes must be handle too and in matlab the interface is defined as abstract class. So it can't be done this way. </p>
  
  <pre><code>class A &lt; handle
  ....
  end
  
  class AA &lt; A
  ....
      methods 
          function foo
          end
      end
  end
  
  class B
  ....
      methods
          function foo
      end
  end
  </code></pre>
  
  <p>I want to create some kind of container with classes AA (handle) and B (non-handle) to ensure they both have function foo. Is there way to do this?</p>