how to detect index of the max amplitude?

3 views (last 30 days)
I have vector and his index
A=[-0.0796 -0.0937 -0.0326 0.1182 -0.1510]
index=[4 9 13 17 24]
how to detect the index of the max?
index= 17

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 1 Feb 2019
[out,ii] = max(A);
out_ind = index(ii);

More Answers (0)


No tags entered yet.

Community Treasure Hunt

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

Start Hunting!