Implementation of consistency calculation scripts for subset selection in Matlab.