linking properties in object oriented code
Show older comments
I have an object oriented code where I want to be able to link several properties in several manners. e.g. "these properties are always equal", "these properties maintain a ratio of 5" etc. these are not properites of the same object, and sometimes not of objects from the same class.
I was thinking of using linkprop but it is not recommended for objects other than graphic objects. also to the best of my knowledge it can only link properties as equal.
I was thinking of adding postset listeners to the properties where the callback function changes the other properties accordingly, but I am not sure how to prevent recursive calling. i.e one function changes the other property changing the first one etc.
would be thankfull for any assistance
Nathan
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!