find multiple maximum imaginary part
Show older comments
Hi, i have a 300x625 complex double, i need to find the Maximum imaginary part in each column, considering that each column contains multiple real parts that has the same maximum i need....?
camp = (ca2 + ca1f)/2; % 300x625 imaginary double
[Mcamp,m] = max(imag(camp));
McampY = Mcamp; % the Maximum imaginary
McampX = real(camp(m)); % the corresponding Real
if a column has 4 numbers that has the same maximum imaginary part, would the above code find them all ? i think it finds the first one only .....
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!