display words in a matrix

2 vues (au cours des 30 derniers jours)
lowcalorie
lowcalorie le 15 Fév 2012
I need help I trying to display the 12 months in a 6x2 matrix then display them in a 6x2 in alphabetical order please help

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 15 Fév 2012
out = reshape(sort(cellstr(datestr(datenum([zeros(12,1) (1:12).' ones(12,1)]),'mmm'))),2,[]);
please read about functions: reshape,sort,cellstr,datestr,datenum
  2 commentaires
lowcalorie
lowcalorie le 15 Fév 2012
i got the moonths into a 12x1 but i am having trouble getting them to a 6x2
lowcalorie
lowcalorie le 15 Fév 2012
I got it thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by