yMax = max(y)
iMax = ind(y.eq.yMax)
print(x(iMax))
H.Dang wrote:
>
> Dear all,
>
> I need to plot a graph y=f(x), where x= fspan(0.001,10,100)
>
> I know how to get the maximum y, just using,
>
> print (max( y))
>
> but I don't know how to find the corresponding x, anyone please tell me?
>
> Thanks.
> --
> Cordially,
> Hongyan
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Apr 01 2009 - 13:01:49 MDT
This archive was generated by hypermail 2.2.0 : Tue Apr 07 2009 - 10:01:36 MDT