Matlab scripts to simulate assortative mating within genealogical dynamics. The scripts were used for all figures in the article Let my people go (home) to Spain: a genealogical model of Jewish identities since 1492, available here: