% runscan.m % runs the scanning update for each of the 20 initial vectors % % omega = inhibition constant % n = number of iterations to perform function u = runscan(omega, n) counter = 1; while counter <= 20 disp('initial state:') v = initU(counter) disp('--------------') scan2(omega, v, n); counter = counter+1; end disp('-----DONE-----')