I have an array called loadp (50*1 double). I would like to see if the value occurs in the respective cell (loop) for the first time. If so, something should be executed. if the value has already occurred in the previous runs, the value should ignored.
for i=1:numRows;%tmp = regexp(my_strings(i),'(?<=_l)\d+','match','once');%loadp(i,1) = str2double(tmp)condition=any(diff(sort(loadp(i,1))) == 0)if condition==0%do somethingsadasd=2313else%do nothingssd=213123endend