From: Kumar Ishita on 12 Apr 2010 06:33 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 12 Apr 2010 07:49 Try logical indexing: X(Y==max(Y(:)))
From: Luca Balbi on 12 Apr 2010 07:52 x(y==max(y(:)))
From: Kumar Ishita on 13 Apr 2010 05:25 "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
|
Pages: 1 Prev: How to transform equations in matrix form? Next: Random matrix with boundaries |