Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: Q:Nicer than: Function[x,MapAt[Im,x,2]]/@data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5425] Re: Q:Nicer than: Function[x,MapAt[Im,x,2]]/@data
  • From: haberndt at dnai.com (Harald Berndt)
  • Date: Sat, 7 Dec 1996 00:25:56 -0500
  • Organization: DNAI ( Direct Network Access )
  • Sender: owner-wri-mathgroup at wolfram.com

In article <57usip$3cb at dragonfly.wolfram.com>, rommel at bc.edu wrote:

> I want to ListPlot the imaginary part of data: 
> data={{x0,z0},{x1,z1},{x2,z2}} 
> [... cut ...] 
> Is there a nicer way to do it?

How about:

data/.{x_, y_}->{x, Im[y]}

-- 
Harald Berndt, Ph.D.                            Research Specialist,
Voice: 510-652-5974                                      Consultant
FAX:   510-215-4299


  • Prev by Date: Re: Q:Nicer than: Function[x,MapAt[Im,x,2]]/@data
  • Next by Date: Re: select a range of elements from a nested list
  • Previous by thread: Re: Q:Nicer than: Function[x,MapAt[Im,x,2]]/@data
  • Next by thread: select a range of elements from a nested list