downsample a vector with different phases ?

Hi,
I have a column vector with 65536 integer data, and out of this vector I want to create a matrix with 32 columns x 2048 rows where each column is a downsampling by 32 of the original vector,, with a phase shift for the starting point going from 0 to 15.
Is there a way to do this without using a loop ?
Thanks,
Stéphane.

 Accepted Answer

I found the solution by looking at Matlab blogs and discussions:
reshape(initial 65536 data vector, 32, 2048) is doing the job I needed as in each line I have now datas 1, 33, 65, ..., then 2, 34, 66, ...

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!