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.

 採用された回答

Stéphane Le Tual
Stéphane Le Tual 2018 年 11 月 19 日

0 投票

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, ...

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by