changes to matlab comparison