Hi everybody. I created a class using the knowledge in https://ch.mathworks.com/help/matlab/matlab_oop/example-representing-structured-data.html Let me take the example of the above mentioned link and ask my question:
... properties (Dependent) Modulus end
methods function modulus = get.Modulus(obj) ind = find(obj.Strain > 0); modulus = mean(obj.Stress(ind)./obj.Strain(ind)); end end
My Question: Only when I add the data to the properties: Stress, Strain the property Modulus is shown/calculated. This is fine. Is there a method on how to, after getting the result of Modulus, delete the data within the properties Stress and Strain whithout deleting the data in the property Modulus?