フィルターのクリア

array division

1 回表示 (過去 30 日間)
kush
kush 2012 年 3 月 24 日
how to divide a 1D array in 4 equal parts

採用された回答

Wayne King
Wayne King 2012 年 3 月 24 日
If you have the Signal Processing Toolbox, you can use buffer()
x = randn(16,1);
y = buffer(x,4);
Otherwise, you can use reshape()
x = randn(16,1);
y = reshape(x,4,4);

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by