Cody

# Problem 2524. weekday and month

Solution 488823

Submitted on 21 Aug 2014 by J.R.! Menzinger
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% year = 2014; day = 'Sun' y_correct = 4; assert(isequal(dd(year,day),y_correct))

day = Sun ans = 4

2   Pass
%% year = 2014; day = 'Wed' y_correct = 5; assert(isequal(dd(year,day),y_correct))

day = Wed ans = 5

3   Pass
%% year = 1999; day = 'Sun' y_correct = 4; assert(isequal(dd(year,day),y_correct))

day = Sun ans = 4

4   Pass
%% year = 1999; day = 'Fri' y_correct = 5; assert(isequal(dd(year,day),y_correct))

day = Fri ans = 5

5   Pass
%% year = 2004; day = 'Sun' y_correct = 4; assert(isequal(dd(year,day),y_correct))

day = Sun ans = 4

6   Pass
%% year = 2000; day = 'Sat' y_correct = 5; assert(isequal(dd(year,day),y_correct))

day = Sat ans = 5

### Community Treasure Hunt

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

Start Hunting!