array division

1 Ansicht (letzte 30 Tage)
kush
kush am 24 Mär. 2012
how to divide a 1D array in 4 equal parts

Akzeptierte Antwort

Wayne King
Wayne King am 24 Mär. 2012
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);

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by