I need to double the size of my vector like this:
x=[1 1 0 1 0 0 1]
to
x=[1 1 1 1 0 0 1 1 0 0 0 0 1 1]
Is there a simple way to do this without a loop?
I need to double the size of my vector like this:
x=[1 1 0 1 0 0 1]
to
x=[1 1 1 1 0 0 1 1 0 0 0 0 1 1]
Is there a simple way to do this without a loop?