display words in a matrix

5 Ansichten (letzte 30 Tage)
lowcalorie
lowcalorie am 15 Feb. 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

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 15 Feb. 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 Kommentare
lowcalorie
lowcalorie am 15 Feb. 2012
i got the moonths into a 12x1 but i am having trouble getting them to a 6x2
lowcalorie
lowcalorie am 15 Feb. 2012
I got it thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by