% Simulated Annealing low-autocorrelation program % BSDLicence % Rick van der Zwet - 0433373 - % $Id: initseq.m 43 2009-12-17 22:18:48Z rick $ function s = initseq(n) % Generate a random column s={-1,1}^n s = rand(n,1); s = round(s); s = s - (s == 0); end