Fix for R2013a change in output from unique