rstemplatematching2: export to *.mat files, multiple thresholds can be compared