フィルターのクリア

Catenate columns in a matrix to one column

1 回表示 (過去 30 日間)
Damith
Damith 2014 年 5 月 20 日
コメント済み: Damith 2014 年 5 月 20 日
Hi,
I have May_Daily matrix (31 x 13). I need to vertically catenate into one column. I have the following code but it does not catenate all columns but only first two. Any code is useful as I am preparing a 31 x 10000 matrix that does the job until the last column.
for cc=1:12
CAT(:,1)=vertcat(May_Daily(:,cc),May_Daily(:,cc+1));
end
Help is appreciated.
Thanks.
  1 件のコメント
Matt J
Matt J 2014 年 5 月 20 日
In future, please highlight your code and apply the
formatting button, as I have just done for you now.

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

採用された回答

Matt J
Matt J 2014 年 5 月 20 日
May_CAT=May_Daily(:);
  1 件のコメント
Damith
Damith 2014 年 5 月 20 日
Thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by