display words in a matrix
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
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
Weitere Antworten (0)
Siehe auch
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!