Hello! I have a class with a number of properties, and I want to write a method which can be called within the class and use properties as arguments in order to change the value of the input properties. Something like this.
classdef myClass < handle
function output = myFunction(input)
function object = myClass
object.property1 = myFunction(object.property2);
object.property3 = myFunction(object.property4);
I know this code doesnt work and I have been using a handle class so my methods can modify properties. I know that the first argument generally has to be the object but I have no use for it in the function. Is there a way to pass properties and modify them similar to above? Any help would be great thanks!