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

4 次查看(过去 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 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by