Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9128 > unrolled thread
| Started by | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| First post | 2012-03-18 07:54 +0000 |
| Last post | 2012-03-19 09:54 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Creating List Murray Eisenberg <murray@math.umass.edu> - 2012-03-18 07:54 +0000
Re: Creating List Dominik Hezel <sendme2000@me.com> - 2012-03-19 09:54 +0000
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2012-03-18 07:54 +0000 |
| Subject | Re: Creating List |
| Message-ID | <jk44bo$e39$1@smc.vnet.net> |
Here's one way:
{iend, jend} = {4, 3};
xvals = Table[xkoor[i], {i, iend}];
yvals = Table[ykoor[j], {j, jend}];
Outer[List, xvals, yvals] // Flatten[#, 1] &
On 3/17/12 3:51 AM, Harry wrote:
> Hi out there,
>
>
> I have calculated some x- and y-values and want to combine them in a
> way that the x and y-values define coordinates. Well, I have:
>
> xkoor[i], {i, 1, iend} and
> ykoor[j], {j, 1, jend}
>
>
> To be able to continue I need this list:
>
> {{xkoor[1],ykoor[1]},
> {xkoor[2],ykoor[1]},
> {xkoor[3],ykoor[1]},
> {xkoor[4],ykoor[1]},
> {xkoor[1],ykoor[2]},
> {xkoor[2],ykoor[2]},
> {xkoor[3],ykoor[2]},
> {xkoor[4],ykoor[2]},
> {xkoor[1],ykoor[3]},
> {xkoor[2],ykoor[3]},
> {xkoor[3],ykoor[3]},
> {xkoor[4],ykoor[3]}}
>
> and have no idea how to get this. So I would be very happy to get any
> small hint...
>
> Thanks a lot,
>
> Harald
>
>
>
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
[toc] | [next] | [standalone]
| From | Dominik Hezel <sendme2000@me.com> |
|---|---|
| Date | 2012-03-19 09:54 +0000 |
| Message-ID | <jk6von$qa$1@smc.vnet.net> |
| In reply to | #9128 |
Would that be sufficient?
Transpose[{{1, 2, 3}, {4, 5, 6}}]
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web