If i have 70 rows and 1 column(70x1) and i want to concatenate every 5 rows into one row and make it a matrix of 14 rows and one column(14x1), how can i do this?

1 回表示 (過去 30 日間)
ck
ck 2016 年 5 月 5 日
編集済み: ck 2016 年 5 月 5 日
Concatenate
  3 件のコメント
ck
ck 2016 年 5 月 5 日
yeah , 5 rows into 1 and sorry its 14 rows. I don't want to average but just put them together into single row. I got the output as 0000/1111/0000/1111 but I need it as 0000111100001111
CS Researcher
CS Researcher 2016 年 5 月 5 日
Please update your question so people don't misunderstand. You need 14 rows and 5 columns (14x5 Matrix). As Sean suggested look at reshape function in MATLAB.

サインインしてコメントする。

回答 (1 件)

Sean de Wolski
Sean de Wolski 2016 年 5 月 5 日

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by