How to find the position of a row in an array
    12 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
If I have an array like this
R=[1 0 1 1 1;
   1 1 0 1 0; 
   1 0 1 1 0; 
   0 1 0 1 1; 
   0 0 1 0 1];
I want to find the position of S in R. 
S=[1 0 1 1 0];
Is there a function which takes S as an input and returns me its position in R which is the 3rd row
0 comentarios
Respuestas (2)
Ver también
Categorías
				Más información sobre Loops and Conditional Statements 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!


