Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Mean Values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112923] Re: Mean Values
  • From: Fulvio <fulviosp at pacbell.net>
  • Date: Wed, 6 Oct 2010 03:14:56 -0400 (EDT)
  • References: <i8eri9$hvk$1@smc.vnet.net>

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