How to create a pre-defined array elements in from single line of code, i.e I have followings array sequence, how can I generate this via a single line of code, as I want to input that to the function argument. It have always the sequence of 0010 and also, 4 columns and 24 rows.
I tried the following:
[0 0 0 1 :24]
The output I want:
[ 0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0,
0 0 1 0 ]