Hey Guys,
I am trying to write a program which read different txt-files, whenever I call a class method.
So for example
%%%%%%%%%%%%
classdef Fooproperties counter=0; endmethods% Standard constructor
function1%function 2 (should read the text file and increment the counter property)
function 2 counter=counter+1;for i=counter to counter+N..readfileend counter = i;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
So basically when I'm calling function 2, it reads the file until a number N. After it read it, it sets the property counter to the last index. And whenever I call the function 2 again, it should read the files starting from counter+1. Is there a way to work with set/get. I don't understand the documentation tbh
Thank you guys
Best Answer