x is a matrice
(l , k )=argmax (X .* X*)
*=conjugate
how can i do the argmax ?

댓글 수: 1

James Tursa
James Tursa 2024년 2월 15일
See the 2nd output of the max( ) function.

댓글을 달려면 로그인하십시오.

답변 (1개)

Athanasios Paraskevopoulos
Athanasios Paraskevopoulos 2024년 3월 23일

0 개 추천

% 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에 대해 자세히 알아보기

태그

질문:

2024년 2월 15일

답변:

2024년 3월 23일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by