I know this is simple but am having a hard time finding the right function for this. I have a vector a = [1 2 3 4] and another vector b = [1 2 6 8]
a = [1 2 3 4]
b = [1 2 6 8]
did you try with setdiff?
c = setdiff(a,b)