Considering this example from the MATLAB Help.
This example, besides having syntax problems, does not seams to work for me. I don't know if is a version issue, I'm using R2013a.
classdef MyClass
properties (Constant = true)
X = pi/180;
end
properties
PropA = sin(X*MyClass.getAngle([1 0],[0 1]);
end
methods (Static = true)
function r = getAngle(vx,vy)
end
end
end
It says
Undefined function or variable 'X'. Error in MyClass (line 1) classdef MyClass
I can fix it by adding MyClass.X
, but I don't know if this was the purpose.