I created a class which reads a file as soon as an object is created. In order to display the progress of reading process, I created a public function (which I prefered to be private by the way). Let's call this function writeProgress,
However, after starting the timer, I receive an warning message: "feval: Undefined function or method 'obj.writeProgress' for input arguments of type 'timer'".
The timer has been initialized like this:
t = timer('TimerFcn',@obj.writeProgress,'Period',1,'ExecutionMode','fixedDelay');
How can I pass the function "writeProgress"? Write progress needs to be a class member as it has to access private data and I'd rather prefer it to be private itself.