- #1
alba_ei
- 39
- 1
Homework Statement
The Attempt at a Solution
Attempt 1
Code:
clc;
clear;
Months=char('January','February','March','April','May','June','July','August','September','October','November','December');
CalSort=char(sortrows(Months));
Cell={CalSort};
disp([CalSort(:,1:6) CalSort(:,7:12)])
Executing CalSort=char(sortrows(Months))
Code:
CalSort =
April
August
December
February
January
July
June
March
May
November
October
September
But the two last lines of codes doesn't give me the wanted result.