Checking if an Array contains a number:

input = [1,2,3,4];
check = 4;
any(input==4)

Check if a number is contained in an array:

input = 32;
check = [32,64,128];
any( check==input )