source: liacs/nc/low-correlation/initseq.m@ 41

Last change on this file since 41 was 38, checked in by Rick van der Zwet, 15 years ago

Made it MatLab compatible

File size: 244 bytes
Line 
1% Simulated Annealing low-autocorrelation program
2% BSDLicence
3% Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
4
5function s = initseq(n)
6 % Generate a random column s={-1,1}^n
7 s = rand(n,1);
8 s = round(s);
9 s = s - (s == 0);
10end
Note: See TracBrowser for help on using the repository browser.