how can do this in matlab
이전 댓글 표시
x is a matrice
(l , k )=argmax (X .* X*)
*=conjugate
how can i do the argmax ?
댓글 수: 1
James Tursa
2024년 2월 15일
See the 2nd output of the max( ) function.
답변 (1개)
Athanasios Paraskevopoulos
2024년 3월 23일
% Assuming X is your matrix
X = ...; % Your matrix here
% Compute the element-wise product of X and its conjugate
productMatrix = X .* conj(X);
% Find the linear index of the maximum value in the product matrix
[~, linearIndex] = max(productMatrix(:));
% Convert the linear index to row and column indices
[l, k] = ind2sub(size(X), linearIndex);
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!