www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/UniqueEntriesinCellArrayofStringsExample.m

    %% Unique Entries in Cell Array of Character Vectors  
% Create a cell array of character vectors. 
A = {'one','two','twenty-two','One','two'};  

%% 
% Find the unique character vectors contained in |A|. 
C = unique(A)