MATLAB Answers

Fred
0

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

Asked by Fred
on 18 Dec 2012
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

  0 Comments

Sign in to comment.

Products

1 Answer

Answer by Matt Fig
on 18 Dec 2012
Edited by Matt Fig
on 18 Dec 2012
 Accepted Answer

reshape(X,50,12)
Or perhaps
reshape(X,12,50).'