Add threshold to create signals by matrix