i have two vector in which the values are repeated.
in first i want to delete the repeated values such as
and in the second vector i want the repeated values to be counted only once and the others are zero
or else a index matrix will also be good
Thanks in advance