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일

0 개 추천

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개)

카테고리

도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by