i want to use fonction(unique) to get un string ,but it awlays shows Error using cell/unique?Can anyone tell me what I am doing wrong here? thank you
1 回表示 (過去 30 日間)
古いコメントを表示
P={pa(1),pa(2),pa(3),pa(4),pa(5)};
H=unique(P,'rows');
Error using cell/unique (line 95)
Input A must be a cell array of strings.
0 件のコメント
採用された回答
Mischa Kim
2014 年 10 月 4 日
pengcheng, use
P = [pa(1),pa(2),pa(3),pa(4),pa(5)];
H = unique(P);
instead.
2 件のコメント
Guillaume
2014 年 10 月 4 日
Or even simpler:
P = pa(1:5);
H = unique(P); % don't need the 'rows' option in any case
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!