Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11168
| From | Murta <rodrigomurtax@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Data Format |
| Date | 2012-08-02 08:52 +0000 |
| Message-ID | <jvdf3g$c36$1@smc.vnet.net> (permalink) |
| References | <jvaran$751$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Hi Nicholas, you could try this:
list={"C1"->{5.`,4.`,7.`,3.`,6.`,6.`,7.`,1.`,5.`,6.`},"C2"->{2.`,5.`,6.`,7.`,7.`,1.`,5.`,4.`,7.`,2.`}};
createSymbolsFromList[list_]:=Module[{varList},
Clear @@ list[[All,1]] // Quiet;
(Evaluate[Symbol[#[[1]]]] = #[[2]])&/@list;
]
createSymbolsFromList[list]
{Mean[C1],Mean[C2]}
---------
output {5.,4.6}
Best Regards
Murta
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Data Format "Nicholas Kormanik" <nkormanik@gmail.com> - 2012-08-01 09:02 +0000
Re: Data Format awnl <awnl@gmx-topmail.de> - 2012-08-02 08:46 +0000
Re: Data Format Ray Koopman <koopman@sfu.ca> - 2012-08-03 08:18 +0000
Re: Data Format awnl <awnl@gmx-topmail.de> - 2012-08-04 10:04 +0000
Re: Data Format Murta <rodrigomurtax@gmail.com> - 2012-08-02 08:52 +0000
csiph-web