MathGroup Archive 2010

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

Search the Archive

Re: Mean Values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112935] Re: Mean Values
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Wed, 6 Oct 2010 03:17:15 -0400 (EDT)

Perhaps something like the following?

   start=23000; end=48000;
   Mean[ToExpression[txt[[start + Range[end - start]]]

On 10/5/2010 5:35 AM, cubsfan334 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?


-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: How to take mean of specific data?
  • Next by Date: Re: How to take mean of specific data?
  • Previous by thread: Re: Mean Values
  • Next by thread: applications