find the element in matrix of intersecting vectors
    9 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ani Asoyan
 el 23 de En. de 2020
  
    
    
    
    
    Comentada: Ani Asoyan
 el 23 de En. de 2020
            Here's my code. I have а & b matrices, and A & B vectors that maximize a's rows and b's colums. also there is another matrix that is a combination of these two matrices  ( c ). 
I want to have  such a  result  that the intersection of  A and B vectors will give the corresponding element from c 
For example if 
A(1)=a(2,1)   &    A(2)=a(2,2)
B(1)=b(1,2)   &   B(2)=b(2,2)
THUS the result is c(2,2)
a=[1,2;3,4]
b=[5,6;7,8]
for i=1:2
A(i)=max(a(:,i))
B(i)=max(b(i,:))
end
2 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Operators and Elementary Operations 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!


