フィルターのクリア

How to split 14400x1 into 20 719x1 matrices?

1 回表示 (過去 30 日間)
mohsen moslemin
mohsen moslemin 2016 年 8 月 22 日
コメント済み: Andrei Bobrov 2016 年 8 月 22 日
Hi i have a matrix that has 1 column and that column has 14400 elements what i want is to split it to each 719 elements so i end up with 19 of 719x1 matrices and the last one would be the remaining in size.

採用された回答

Andrei Bobrov
Andrei Bobrov 2016 年 8 月 22 日
a - your vector;
n = 719;
m = numel(a);
out = reshape([a(:);nan(mod(-m,n),1)],n,[]);

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 8 月 22 日
If you have the communications systems toolbox, see buffer()

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by