I use three lines here for the complete illustration. If you have already assigned the first two lines, the third is all that is necessary.
v = randi(15, 1, 20);
chosen_values = [2 4 5 10];
chosen_cells_index = ismember(v, chosen_values)
The ‘chosen_cells_index’ vector will be what you want.