how to get the index of the same element in a cell
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Roger
      
 am 15 Sep. 2014
  
    
    
    
    
    Bearbeitet: Image Analyst
      
      
 am 15 Sep. 2014
            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 Kommentare
Akzeptierte Antwort
  Image Analyst
      
      
 am 15 Sep. 2014
        Scrap all that and just use ismember() instead.
2 Kommentare
  Image Analyst
      
      
 am 15 Sep. 2014
				
      Bearbeitet: Image Analyst
      
      
 am 15 Sep. 2014
  
			You should be able to drop the ==1 part.
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!