Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11421 > unrolled thread
| Started by | Aaron <aaron.sokolik@gmail.com> |
|---|---|
| First post | 2012-08-20 08:16 +0000 |
| Last post | 2012-08-20 08:16 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Thread::tdlen: Objects of unequal length in Aaron <aaron.sokolik@gmail.com> - 2012-08-20 08:16 +0000
| From | Aaron <aaron.sokolik@gmail.com> |
|---|---|
| Date | 2012-08-20 08:16 +0000 |
| Subject | Thread::tdlen: Objects of unequal length in |
| Message-ID | <k0srog$jn2$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web