# Documentation of mutexch

Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)

## Function Synopsis

NewChrom = mutexch(Chrom, VLUB, MutRate)

## Help text

MUTation by eXCHange
This function takes the current population, mutates each element
with given mutation probability by exchanging it with another
element and returns the resulting population.
Syntax: NewChrom = mutexch(Chrom, VLUB, MutRate)
Input parameters:
Chrom - A matrix containing the chromosomes of the
current population. Each row corresponds to
an individuals string representation.
VLUB - Matrix containing the boundaries of each variable.
not used here, necessary for compatibility with
real valued mutation
MutRate - Scalar containing the mutation rate / probability.
if omitted or NaN MutRate = 1/size(Chrom,2) is
assumed.
Output parameter:
NewChrom - Matrix containing a mutated version of Chrom.
See also: mutate, mutswap, mutreal, mutbin, mutint, initip

This document is part of

**version 3.8** of the

**
GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab -
www.geatbx.com**.

The Genetic and Evolutionary Algorithm Toolbox is

**not public domain**.

*© 1994-2006 Hartmut Pohlheim, All Rights Reserved,
(support@geatbx.com).*