How to find number in a matrix and output its row number?
    6 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    shatha almarri
 le 15 Fév 2021
  
    
    
    
    
    Réponse apportée : Walter Roberson
      
      
 le 15 Fév 2021
            I have a coloumn vector 
M = [83 82 86 84 85 90]
How can I find at which row the matrix has a value of 85 (should output row = 5 since 85 is on the 5th row)
0 commentaires
Réponse acceptée
  Walter Roberson
      
      
 le 15 Fév 2021
        M = [83 82 86 84 85 90].'
[row, column] = find(M == 85)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Matrix Indexing dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

