How can i get the index of the submatrix D, that correspond to the maximum determinant?
이전 댓글 표시
I have this code
A= randn(2, 4);%this will give me a 2rows by 4columns matrix
b=0;
for i=1:1:4
for j=(i+1):1:4
b=b+1;
D=[A(:,i),A(:,j)];
E(b)=det(D);
end
end
F=max(E);
From the code a submatrix D is designed for each iteration F will return the maximum determinant after all itereations. But please, how can i get the index [i ; j] that made up the matrix D which correspond to F
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!