MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mean Values


On Oct 5, 2:36 am, cubsfan334 <cubsfan... at gmail.com> wrote:
> Hi,
>
> I have a text file of over 100,000 values, and I'd like to have Mathematica take the average of certain values I specify.  For example, after I read in the file, is there a command that could take the mean of, say, values 23000 - 48000?
>
> Thanks!

If db is the vector containg the imported data you could try:
Mean[ Take[db,{23000,48000}] ]


  • Prev by Date: Re: PSE Example 8.6 via Reduce
  • Next by Date: Function argument types
  • Previous by thread: Mean Values
  • Next by thread: Re: Mean Values