display words in a matrix

2 次查看(过去 30 天)
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

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by