how can do this in matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
x is a matrice
(l , k )=argmax (X .* X*)
*=conjugate
how can i do the argmax ?
답변 (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);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!