I was working on one of the Cody questions, and encountered the wilkinson function. In working to solve the problem I was utilizing the unique() function on the wilkinson array, but the results that are returned are not what I would expect. This occurs while using the 'rows' option, not while just using unique.
x = wilkinson(9);u = unique(x,'rows');
I would expect u to look something like a 9×3 array with 0, 1, and another integer identified in each row, but instead u comes out as a 9×9 array which is the vertical reflection of x.
Does anybody know why this result is generated?