how can do this in matlab

1 visualización (últimos 30 días)
shadi
shadi el 15 de Feb. de 2024
Respondida: Athanasios Paraskevopoulos el 23 de Mzo. de 2024
x is a matrice
(l , k )=argmax (X .* X*)
*=conjugate
how can i do the argmax ?
  1 comentario
James Tursa
James Tursa el 15 de Feb. de 2024
See the 2nd output of the max( ) function.

Iniciar sesión para comentar.

Respuestas (1)

Athanasios Paraskevopoulos
Athanasios Paraskevopoulos el 23 de Mzo. de 2024
% 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);

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by