Re: Data Manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg43314] Re: Data Manipulation
- From: "Carl K. Woll" <carlw at u.washington.edu>
- Date: Sun, 24 Aug 2003 04:55:12 -0400 (EDT)
- Organization: University of Washington
- References: <bi7o00$pcf$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Ch akpovo, One possibility is a piece of code I wrote many moons ago: UnsortedUnion[li_] := Block[{i}, i[n_]:=(i[n]=Sequence[];n); i /@ li] Wolfram thought that this code snippet was nice and included it (modified slightly) in their documentation under further examples for Union. Carl Woll Physics Dept U of Washington "Ch akpovo" <akpovo at cennas.nhmfl.gov> wrote in message news:bi7o00$pcf$1 at smc.vnet.net... > Hello to all, > I have an elementary problem, > I created a power spectrum of my data and it gives me expect from the first > and the element number datalength/2+1, all the others are repeated. What I > want to do is to use a mathematica command that remove that repetition > without sorting. The command Union[list] is removing the repeated elements > but is sorting the new list. Can anyone help me? > > > Ch akpovo >