MathGroup Archive 2000

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

Search the Archive

Need to reduce 2 lists so that only {x,y} pairs with same x remain

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24134] Need to reduce 2 lists so that only {x,y} pairs with same x remain
  • From: materialsscientist at my-deja.com
  • Date: Wed, 28 Jun 2000 02:11:51 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I have 2 lists of data:

for example
data1={{1,1},{1.5,1.5},{2,2},{3,3},{4,4},{5,5}}

data2={{1,2},{2,3},{3,4},{4,5},{6,7},{7,8}}


I want to do a point by point comparision, so I
need to reduce both data1 and data2 so that
common x data in the {x,y} pairs for each list
remain.

Thus the lists should look like this:

data1={{1,1},{2,2},{3,3},{4,4}}
data2={{1,2},{2,3},{3,4},{4,5}}

What function(s) would to something like this?

Thanks,

Chuck



Sent via Deja.com http://www.deja.com/
Before you buy.


  • Prev by Date: Integration...
  • Next by Date: Re: Plots with Variable Limits?
  • Previous by thread: Re: Integration...
  • Next by thread: Re: Need to reduce 2 lists so that only {x,y} pairs with same x remain