When creating a custom crossover function for MATLAB\'s ga(), it has to follow this scheme:
function xoverKids = MyCrossoverFunc(parents,options,nvars,Fitness