how can do this in matlab
1 view (last 30 days)
Show older comments
x is a matrice
(l , k )=argmax (X .* X*)
*=conjugate
how can i do the argmax ?
Answers (1)
Athanasios Paraskevopoulos
on 23 Mar 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);
0 Comments
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!