from Copy / Clone method for handle and hgsetget class by Sebastian Hölz
Enable deep copying of child objects of classes handle or hgsetget

TestClass_hgsetgetplus
classdef TestClass_hgsetgetplus < hgsetgetplus
    %TESTCLASS Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
        prop1 = 1;
        prop2 = 2;
        version = 3;
    end
    properties (Dependent)
        prop3
    end
    
    methods
        function IncrementVersion(obj)
            obj.version = obj.version+1;
        end
    end
    
    
end

Contact us