how can do this in matlab

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

1 Comment

See the 2nd output of the max( ) function.

Sign in to comment.

Answers (1)

% 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);

Categories

Find more on Linear Algebra in Help Center and File Exchange

Tags

Asked:

on 15 Feb 2024

Community Treasure Hunt

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

Start Hunting!