My code is like this
function obj = A(r, v, a)
function obj = set.acce (obj, value)
obj.acce = value;
else error ('Error message')
I'm not sure how I would call the set.acce function on the commands window as well as in the fun1 method.
I've tried doing
objX = A(
objX.acce = someValue;
But this directly sets the value of objX.acce to someValue instead of calling the set.acce function to modify someValue first. Both
would throw error messages. How would I fix this? Thank you!