Although I searched a bit on google but did not find a quick and easy answer.
So suppose we have an array with, say 3 elements
X[1]={a,b};X[2]={w,f,s};X[3]={t,y,u};
Now I want to print them in the same line using Do loop. I use the code
Do[Print[X[i]],{i,3}]
But it will print in different lines. I also want to add text in between two elements. I tried to wrap everything using Row[] but it didn't work.
Do
, don’t usePrint
either.Row
orGrid
would have been my first choices. Can you show us how exactly you used Row, what output you obtained, and what you wanted to obtain instead? You May also be interested inRiffle
to interleave elements into an array. $\endgroup$