Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Q:Nicer than: Function[x,MapAt[Im,x,2]]/@data
Posted:
Dec 2, 1996 10:28 AM


I want to ListPlot the imaginary part of data:
data={{x0,z0},{x1,z1},{x2,z2}}
The x? are real, the z? complex.
My simple but ugly solution was Transpose[{Transpose[data][[1]],Im[Transpose[data][[2]]]}]
after reading a little I came to the shorter
Function[x,MapAt[Im,x,2]]/@data
Is there a nicer way to do it?



