MathGroup Archive 1998

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

Search the Archive

Re: Data Extraction from List {{x1,y1}..{xn,yn}}where ##<x<##



At 18:35 21-03-98 -0500, charles wrote:
>Hello,
>
>How might I extract a range of {x,y}from a list of data, so that I can
>perform a linear fit between the point that meet the criterion of being
>bewteen x_n and x_m.
>
>In other words, fit a line to a part of the data that has #1<x<#2.
>
>I have attempted to use the Select function but it requires me to
>Flatten the data list first? And it results in giving me a list of just
>the x values not the {x,y} pairs.
>
>Any help is greatly appreciated.
>
>Thanks,
>
>Charles Koehler
>
>
>
hi Charles,
try:
data=Table[{Random[],Random[]},{12}]
Select[data,(#[[1]]>.2&&#[[1]]<.5)&]
Dr. Wouter L. J. MEEUSSEN
w.meeussen.vdmcc@vandemoortele.be
eu000949@pophost.eunet.be




  • Prev by Date: Re: Extension of Factor
  • Next by Date: Re: How can I make the vertical axes grow down and not up?
  • Prev by thread: Re: Data Extraction from List {{x1,y1}..{xn,yn}}where ##<x<##
  • Next by thread: Re: Data Extraction from List {{x1,y1}..{xn,yn}}where ##<x<##