Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10153 > unrolled thread
| Started by | Andre Koppel <akoppel@akso.de> |
|---|---|
| First post | 2012-05-19 09:51 +0000 |
| Last post | 2012-05-19 09:51 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Creating Histogram-Data from X,Y,Z-Data Andre Koppel <akoppel@akso.de> - 2012-05-19 09:51 +0000
| From | Andre Koppel <akoppel@akso.de> |
|---|---|
| Date | 2012-05-19 09:51 +0000 |
| Subject | Creating Histogram-Data from X,Y,Z-Data |
| Message-ID | <jp7qfd$qjm$1@smc.vnet.net> |
Hi All,
I do have some Data like the following:
{{1, 2, 3}, {4, 5, 6}}
To use a histogram-function (like Histogram3D) I need to transform this
into a list like:
{{1,2}, {1,2}, {1,2}, {4,5}, {4,5}, {4,5}, {4,5}, {4,5}, {4,5}}
This means "Create an X/Y-Pair for each Z-Value. Possibly with an
optional Z-Step. Second Example (Z-Step: 2)
{{1, 2, 4}, {4, 5, 6}}
Would result in:
{{1, 2}, {1, 2}, {4,5}, {4,5}, {4,5}}
Did anybody know a simple converting-Function?
Kind regards
Andre
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web