array division

2 vues (au cours des 30 derniers jours)
kush
kush le 24 Mar 2012
how to divide a 1D array in 4 equal parts

Réponse acceptée

Wayne King
Wayne King le 24 Mar 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);

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by