Cut vector into many new vectors with defined lengths
Mostrar comentarios más antiguos
I have a very long vector that I would like to cut up into new vectors of a specified length (400).
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 29 de Mayo de 2015
0 votos
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
el 1 de Jun. de 2015
0 votos
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!