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!