Skip to main content
Tweeted twitter.com/#!/StackMma/status/189143347116515328

I have a list such as list = {1,4,3,4,6,3,1,2,3,4 ... } and a range, say, range = Range[20000].

I want to obtain the following output:

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where n is basically Range[Length[list]].

The general question here would be how can I create a list from the $a_i$th index of list a, the $b_k$th index of list b and so on.

I would have tried MapThread but I'm trying to use the Histogram3D function so I needed this "nice" list.

Edit: thanks for the edits R.M. :D

I have a list such as list = {1,4,3,4,6,3,1,2,3,4 ... } and a range, say, range = Range[20000].

I want to obtain the following output:

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where n is basically Range[Length[list]].

The general question here would be how can I create a list from the $a_i$th index of list a, the $b_k$th index of list b and so on.

I would have tried MapThread but I'm trying to use the Histogram3D function so I needed this "nice" list.

Edit: thanks for the edits R.M. :D

I have a list such as list = {1,4,3,4,6,3,1,2,3,4 ... } and a range, say, range = Range[20000].

I want to obtain the following output:

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where n is basically Range[Length[list]].

The general question here would be how can I create a list from the $a_i$th index of list a, the $b_k$th index of list b and so on.

I would have tried MapThread but I'm trying to use the Histogram3D function so I needed this "nice" list.

added 38 characters in body
Source Link

I have a list such as list = {1,4,3,4,6,3,1,2,3,4 ... } and a range, say, range = Range[20000].

I want to obtain the following output:

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where n is basically Range[Length[list]].

The general question here would be how can I create a list from the $a_i$th index of list a, the $b_k$th index of list b and so on.

I would have tried MapThread but I'm trying to use the Histogram3D function so I needed this "nice" list.

Edit: thanks for the edits R.M. :D

I have a list such as list = {1,4,3,4,6,3,1,2,3,4 ... } and a range, say, range = Range[20000].

I want to obtain the following output:

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where n is basically Range[Length[list]].

The general question here would be how can I create a list from the $a_i$th index of list a, the $b_k$th index of list b and so on.

I would have tried MapThread but I'm trying to use the Histogram3D function so I needed this "nice" list.

I have a list such as list = {1,4,3,4,6,3,1,2,3,4 ... } and a range, say, range = Range[20000].

I want to obtain the following output:

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where n is basically Range[Length[list]].

The general question here would be how can I create a list from the $a_i$th index of list a, the $b_k$th index of list b and so on.

I would have tried MapThread but I'm trying to use the Histogram3D function so I needed this "nice" list.

Edit: thanks for the edits R.M. :D

deleted 30 characters in body; edited tags
Source Link
rm -rf
  • 89.3k
  • 21
  • 297
  • 479

Sorry, i know this is a really simple question but:

iI have a list such as {1,4,3,4,6,3,1,2,3,4 ... }list = {1,4,3,4,6,3,1,2,3,4 ... } and a range 20000, say, -> Range[20000] i assumerange = Range[20000].

iI want a listto obtain the following output: { {0,1}, {1,4}, {2,3}, {3,4}, {4,6} ...

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where {nth element of the first list, nth element of the range list | nn is basically Range[Length[first list]]} . thanks :DRange[Length[list]].

theThe general question here would be how can iI create a list from the a_i-$a_i$th index of list aa, the b_k-$b_k$th index of list b ..b and so on.

I would have tried the MapThreadMapThread but i'mI'm trying to use the histogram3DHistogram3D function so I needed this "nice" list.

Sorry, i know this is a really simple question but:

i have a list such as {1,4,3,4,6,3,1,2,3,4 ... } and a range 20000 -> Range[20000] i assume.

i want a list: { {0,1}, {1,4}, {2,3}, {3,4}, {4,6} ... {nth element of the first list, nth element of the range list | n is basically Range[Length[first list]]} . thanks :D

the general question here would be how can i create a list from the a_i-th index of list a, the b_k-th index of list b ...

I would have tried the MapThread but i'm trying to use the histogram3D function so I needed this "nice" list.

I have a list such as list = {1,4,3,4,6,3,1,2,3,4 ... } and a range, say, range = Range[20000].

I want to obtain the following output:

{{0,1}, {1,4}, {2,3}, {3,4}, {4,6}, ... {nth element of list, nth element of range}}

where n is basically Range[Length[list]].

The general question here would be how can I create a list from the $a_i$th index of list a, the $b_k$th index of list b and so on.

I would have tried MapThread but I'm trying to use the Histogram3D function so I needed this "nice" list.

Source Link
Loading