please check here
http://www.ncl.ucar.edu/Document/Functions/Built-in/maxind.shtml
ex,
x= fspan(0.001,10,100)
y=x*x
i=maxind(y)
print (x(i))
ZHUANSHI
--------------------------------------------------------------------------------------------------------------------------
On 4/1/09, h3dang_at_scimail.uwaterloo.ca <h3dang_at_scimail.uwaterloo.ca> 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.
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-- Zhuanshi He / Z. He (PhD) Waterloo Centre for Atmospheric Sciences (WCAS) Department of Earth and Environmental Sciences Phy Bldg, Rm 2022 University of Waterloo, Waterloo, ON N2L 3G1 Canada Tel: +1-519-888-4567 ext 36667 _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Apr 02 2009 - 11:22:37 MDT
This archive was generated by hypermail 2.2.0 : Tue Apr 07 2009 - 10:01:36 MDT