display words in a matrix
2 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Andrei Bobrov
on 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
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!