A simple question about working with array matrix and converting a column to multiple columns

1 ビュー (過去 30 日間)
Dear all, I have a time series of monthly data for 50 years in a single column of 600 rows how can I convert them to a form of 12 columns and 50 rows X(n,m) where n is year and m is month. sorry about this simple question I am new in using MATLAB and programming

採用された回答

Matt Fig
Matt Fig 2012 年 12 月 18 日
編集済み: Matt Fig 2012 年 12 月 18 日
reshape(X,50,12)
Or perhaps
reshape(X,12,50).'

その他の回答 (0 件)

カテゴリ

Find more on Matrices and Arrays in Help Center and File Exchange

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by