title: Import class to access constant values
body: <p>I defined a class in one of my many MATLAB packages. To my suprise, I could not access a constant property of my class without importing the class definition. Even if it is a method of the class itself. Like so:</p>
  
  <pre><code>classdef TestClass
  
      properties( Constant )
  
          c=0;
      end
  
      methods
  
          function obj = TestClass()        
          end
  
          function getC(obj)
  
              import test.TestClass;
              disp(TestClass.c);
          end
      end    
  end
  </code></pre>
  
  <p>I just want to check whether I am doing something wrong here or is this the correct way to use constants in MATLAB.</p>