Hey all, I want one of the functions in my class to contain an input parameter which is a property of an object of that class.
For example:
classdef MyClass properties myproperty = cell(8) end methods x = myfunction1 (mycellarray) end myfunction2 (myobject) y = myfunction1(myobject.myproperty) end endend
However, I get the error
Undefined function 'myfunction1' for input arguments of type 'cell'.
It's nothing to do with cells in particular: if I try to pass a string, to myfunction3, which takes strings as an input, I get
Undefined function 'myfunction3' for input arguments of type 'char'.
Please help!
Best Answer