Duplicate:
Element-wise array replication in Matlab
How do I upsample a vector by an integral factor without applying any filtering to the upsampled data?
Basically I e.g. want to upsample a vector three times from
[1 -1 -1 1 1 -1 ]
to:
[1 1 1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 -1 -1 -1 ]