I have a matrix A that looks like:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1
and a matrix B that looks like:
0 00 00 00 00 00 0
How can I create a new matrix C that looks like:
0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 0 00 0 1 1 0 0 1 1 0 00 0 1 1 0 0 1 1 0 00 0 1 1 0 0 1 1 0 00 0 1 1 0 0 1 1 0 0
by inserting B into A and without using loops. Also if this is not possible, is there a way to create matrix C from matrix A?
Best Answer