Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11421

Thread::tdlen: Objects of unequal length in

From Aaron <aaron.sokolik@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Thread::tdlen: Objects of unequal length in
Date 2012-08-20 08:16 +0000
Message-ID <k0srog$jn2$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


I'm new to Mathematica and trying to run rebuild some programs from other systems in Mathematica.  I'm operating on large data lists and receiving the unequal length error.  However, if I simply paste the output without the extra curly bracket into an operation, everything works.  Obviously, copying and pasting wont work for functions... How can I get around this? 

Below are the functions I'm using to generate two lists from a single dataset:

ln[13]:= MapThread[Mean, Sequence[{{testdata}}]]
Out[13]= {{15.0059, 14.9897, 15.0248,....}}

ln[14]:= Last[testdata]
Out[14]= {14.9602, 14.8624, 15.3364, 15.0231,....}

When I run Length on each of the outputs, I receive the proper number of datapoints for the Last function but receive an output of "1" for the Mean function.  If I paste the output with only 1 "{" though and run Length, I receive the proper output. 

I know this must be simple but I'm stuck.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Thread::tdlen: Objects of unequal length in Aaron <aaron.sokolik@gmail.com> - 2012-08-20 08:16 +0000

csiph-web