MATLAB: What is wrong of this class

classMATLAB

classdef dummya
properties
value;
end
methods
function obj = dummya( aa)
obj.value = test( aa);
end
end
methods (Static)
function y = my_pi(a)
y = 3.141592*test(a);
end
end
methods
function y = test(a)
y = 3.141592*a;
end
end
end

Best Answer

What is the error you are receiving? I saved your test code to file (dummy.m) and it seemed to work.