Problem 42711. Find Month & day for given day number of a year

Solution 3869633

Submitted on 27 Nov 2020
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
x = 23; vec_crt=[1 23]; assert(isequal(your_fcn_name(x),vec_crt))

2   Pass
x = 54; vec_crt=[2 23]; assert(isequal(your_fcn_name(x),vec_crt))

3   Fail
x = 231; vec_crt=[8 18]; assert(isequal(your_fcn_name(x),vec_crt))

Assertion failed.

4   Fail
x = 300; vec_crt=[10 26]; assert(isequal(your_fcn_name(x),vec_crt))

Assertion failed.

Suggested Problems

More from this Author18

Community Treasure Hunt

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

Start Hunting!