The UNIQUE function cannot search over cell arrays which contain elements that are not of type string. The following example illustrates this behavior.
C={'abc' 'abc' 4}; unique(C)
??? Error using ==> cell.unique Input must be a cell array of strings.
Best Answer