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

1 vue (au cours des 30 derniers jours)
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

Réponse acceptée

Matt Fig
Matt Fig le 18 Déc 2012
Modifié(e) : Matt Fig le 18 Déc 2012
reshape(X,50,12)
Or perhaps
reshape(X,12,50).'

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by