Re: How do I manipulate that data?
- To: mathgroup at smc.vnet.net
- Subject: [mg22440] Re: How do I manipulate that data?
- From: "R. Lopez-Aleman" <lopez at phys.psu.edu>
- Date: Wed, 8 Mar 2000 02:21:42 -0500 (EST)
- Organization: Penn State University, Center for Academic Computing
- References: <89iaoe$msi@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"mark griggs" <markgriggs at sc.rr.com> wrote in message news:89iaoe$msi at smc.vnet.net... > 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? > How about sqrd= Table[data[[i,2]]^2,{i,1,<number of rows in data>}] ? -- ============================================= Ramon Lopez-Aleman Physics Dept Center for Gravitational Physics and Geometry Pennsylvania State University 320-J Osmond Lab email: lopez at phys.psu.edu http://www.phys.psu.edu/~lopez =============================================