app_mask.m with user defined channel 1 and 2