MathWorks Webinar: Using Genetic Algorithms in Financial Applications

by

 

26 Dec 2007 (Updated )

Presentation and M-Files for MathWorks Webinar

generateinitpop(n,k)
function initPop = generateinitpop(n,k)

initPop = zeros(n-k+1,n);

for i=1:n-k+1
    initPop(i,i:i+k-1) = 1;
end

Contact us