Create selectThreshold.m