create single vectors from a matrix

2 ビュー (過去 30 日間)
Natasha Kratowska
Natasha Kratowska 2012 年 8 月 15 日
Hello,
Consider a matrix 100x1.
How can I get vectors of 10x1 where
vector1 has the first 10 rows of the matrix (1st to 10th)
vector2 has the next 10 rows (11th to 20th)
vector3 has the next 10 rows (21th to 30th)
and so on.
Thank you very much.
Natasha

採用された回答

Andrei Bobrov
Andrei Bobrov 2012 年 8 月 15 日
編集済み: Andrei Bobrov 2012 年 8 月 15 日
Let
Yourvector = randi(1000,100,1);
out = reshape(Yourvector,10,[]);
Columns in out - your vectors.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStress and Strain についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by