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!