% Simulated Annealing low-autocorrelation program % BSDLicence % Rick van der Zwet - 0433373 - function s = initseq(n) % Generate a random column s={-1,1}^n s = rand(n,1); s = round(s); s = s - (s == 0); end