Hi, can anyone kindly help me to answer this..? thank you.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how to find this..?
d=arg max min(pk[1], pk2[2])
2 Kommentare
Antworten (2)
Utkarsh Belwal
am 3 Dez. 2020
Hi,
If you are trying to get the index of the maximum element along with the maximum value then refer to the below statement:
[M,I] = max([pk(1), pk2(2)]);
For more infomration refer to the documentation link: https://www.mathworks.com/help/matlab/ref/max.html
Walter Roberson
am 6 Dez. 2020
l = linspace(-5,5); %or whatever
pk = 5*l/5*3;
pk2 = 6*4/3;
[~, d] = max(min(pk, pk2));
d is now the index into l such that the min() of those two values is maximized.
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!