how to get the index of the same element in a cell
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Roger
      
 el 15 de Sept. de 2014
  
    
    
    
    
    Editada: Image Analyst
      
      
 el 15 de Sept. de 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 comentarios
Respuesta aceptada
  Image Analyst
      
      
 el 15 de Sept. de 2014
        Scrap all that and just use ismember() instead.
2 comentarios
  Image Analyst
      
      
 el 15 de Sept. de 2014
				
      Editada: Image Analyst
      
      
 el 15 de Sept. de 2014
  
			You should be able to drop the ==1 part.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Matrix Indexing en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!