From: Kumar Ishita on
Hii,
I have X, Y data. I need to find maximum of Y between equal intervals, i.e.,
i=255000:5000:570000;
peak=max(Y(i),Y(i+5000));
Now I need to find X at which Y is maximum since I need a plot between Max of Y and X at which it is occurring. Can someone help me?? Thanx
From: Luca Balbi on
Try logical indexing:

X(Y==max(Y(:)))
From: Luca Balbi on
x(y==max(y(:)))
From: Kumar Ishita on
"Luca Balbi" <luca.balbi.removefollowing.nospam(a)gmail.com> wrote in message <hpv1h3$adv$1(a)fred.mathworks.com>...
> x(y==max(y(:)))
Thank U............It helped me...........thanx again