Cut vector into many new vectors with defined lengths
Afficher commentaires plus anciens
I have a very long vector that I would like to cut up into new vectors of a specified length (400).
Réponse acceptée
Plus de réponses (2)
Walter Roberson
le 29 Mai 2015
0 votes
If you have the signal processing toolkit, you may wish to use buffer(), which is like reshape() but will zero-pad the final vector if necessary to make it fit. Also, buffer() can do overlapping.
Kimberly S
le 1 Juin 2015
0 votes
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!