Cut vector into many new vectors with defined lengths
Ältere Kommentare anzeigen
I have a very long vector that I would like to cut up into new vectors of a specified length (400).
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 29 Mai 2015
0 Stimmen
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
am 1 Jun. 2015
0 Stimmen
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!