how can do this in matlab

1 回表示 (過去 30 日間)
shadi
shadi 2024 年 2 月 15 日
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 日
% 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);

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by