display words in a matrix

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

 Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 15 de Feb. de 2012

0 votos

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 comentarios

lowcalorie
lowcalorie el 15 de Feb. de 2012
i got the moonths into a 12x1 but i am having trouble getting them to a 6x2
lowcalorie
lowcalorie el 15 de Feb. de 2012
I got it thank you

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by