downsample a vector with different phases ?

3 次查看(过去 30 天)
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by