Re: How do I manipulate that data?
- To: mathgroup at smc.vnet.net
- Subject: [mg22510] Re: [mg22403] How do I manipulate that data?
- From: "Mark Harder" <harderm at ucs.orst.edu>
- Date: Sat, 4 Mar 2000 02:27:11 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
mark,
Have you tried something like
nDat= Length[data ];
ySq=Table[{data[[i,1]], data[[i,2]]^2 }, {i,nDat} ];
ListPlot[ySq, DisplayFunction->$DisplayFunction ]
?
-mark harder
-----Original Message-----
From: mark griggs <markgriggs at sc.rr.com>
To: mathgroup at smc.vnet.net
Subject: [mg22510] [mg22403] How do I manipulate that data?
>Hello all,
> I have a data file called data.txt. It consists of 2 columns of
>data. I am able to read with
>data = ReadList["/home/mark/data.txt", {Real, Real}]; I let the first
>column represent x and the second represent y. Then I plot y vs. x
>with ListPlot[data]. My problem is that I need to plot y^2 vs. x.
>So, how can I square all the y terms?
>
>regards
>
>mark
>
>
>
>
>--
>Heisenburg may have slept here
>------------------------------
>
>
>