I am trying to plot two lists using the ListPlot command. I need to merge two lists.
The two lists I have are:
a = {1, 2, 3, 4, 5, 6, ....}
b = { {1}, {0, 0}, {2, 248, 234, 5, 6}, ...}
I need each element of list "a" to map to list 'b's individual lists. For example, it should look like:
{{1,1},{2,0},{2,0},{3,2},{3,248},{3,234},{3,5},{3,6}...}
I have tried something like merge partition function but did not help.
What kind of function should I use?
MapThread[Prepend,{Flatten[b],a}]? – Peter Roberge Feb 23 '16 at 18:07