Fix compatibility for Matlab R2013a

setdiff behaviour changed between R2012b and R2013a