Find row in matrix.
    72 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Artyom
      
 am 13 Jul. 2012
  
    
    
    
    
    Beantwortet: Sonia PAGUI
 am 5 Okt. 2021
            Hi, everyone. There are some data in array:
 A=[3 3 2011;22 3 2011;23 3 2011;24 3 2011;25 3 2011;26 3 2011;27 3 2011];
I'm trying to find matching data using 'ismember':
 B=[23 3 2011;27 3 2011];
 [tf, index]=ismember(A,B);
But A(1,1) is also written as correct value. How can I solve it?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
  Artyom
      
 am 13 Jul. 2012
        2 Kommentare
  Honglei Chen
    
      
 am 13 Jul. 2012
				
      Bearbeitet: Honglei Chen
    
      
 am 13 Jul. 2012
  
			Then simply do
[tf, index]=ismember(A(:,1:3),B,'rows');
BTW you may want to update your problem next time instead of adding an answer to rephrase the question.
  Sonia PAGUI
 am 5 Okt. 2021
        Salut Mon code affiche l'erreur a propos de "find_row_array" quelqu'un peut m'aider???
0 Kommentare
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!



