Fixed soft matching results to match matlab output