I have a class, with properties and methods. I am using a method in the class to change a particular property, but the property is not getting changed. Why is this?
See the example here :
classdef tempClasspropertiesValue = 1;endmethodsfunction changeValue(obj)obj.Value = 2;endendend
Now, I execute :
>> a = tempClass;>> a.changeValue;>> a.Valueans =1
Why is this happening?