how to get the index of the same element in a cell
1 回表示 (過去 30 日間)
古いコメントを表示
if true
Qzonenum=unique(cgroup);
for i = 1:length(Qzonenum)
globidx=find(cgroup==Qzonenum{i});
end
end
then error:Undefined function 'eq' for input arguments of type 'cell'.
0 件のコメント
採用された回答
Image Analyst
2014 年 9 月 15 日
Scrap all that and just use ismember() instead.
2 件のコメント
Image Analyst
2014 年 9 月 15 日
編集済み: Image Analyst
2014 年 9 月 15 日
You should be able to drop the ==1 part.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!