source: liacs/nc/low-correlation/mutation.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: 227 bytes
RevLine 
[38]1% Simulated Annealing low-autocorrelation program
2% BSDLicence
3% Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
4
5function new = mutation(old)
6 loc = randint(1,length(old));
7 old(loc) = old(loc) * -1;
8 new = old;
9end
Note: See TracBrowser for help on using the repository browser.