Cut vector into many new vectors with defined lengths
이전 댓글 표시
I have a very long vector that I would like to cut up into new vectors of a specified length (400).
채택된 답변
추가 답변 (2개)
Walter Roberson
2015년 5월 29일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!