MATLAB: Unique function cell array conflict

cell arraysMATLABnanstringsunique

Matlab is giving me a seemingly conflicting error message. It says that the 'rows' flag is ignored since NewParts is a cell array, however it says that it cannot perform the unique function since NewParts is not a cell array. whos says that NewParts is a cell array. Are there any ways to resolve this conflict?
>> Classification
Warning: 'rows' flag is ignored for cell arrays.
> In cell.unique at 31
In Classification at 103
??? Error using ==> cell.unique at 45
Input must be a cell array of strings.
Error in ==> Classification at 103
UNIQUE_NewParts = unique(NewParts,'rows');
whos
NewParts 2122x21 3330030 cell

Best Answer

It's a cell array but not a cell array of strings.
unique({magic(2),magic(2),rand(2)})
Fail, your error message.
unique({'hello world','what''s up','hello world'})
pass.