In Matlab, you need to fully qualify references to classes in a namespace, even from other classes within that same namespace. Like this.
classdef class1
properties (Constant = true)
%in centipascals
p1 = namespace.class2(param1,param2);
end
end
You can import
other classes from the same namespace, but import
s only work at a per-function level, and don't work in properties blocks at all AFAIK, so it won't work in this specific case, and may be more trouble than it's worth elsewhere.