Cody

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

Solution 2164220

Submitted on 18 Mar 2020 by Stephen
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   Pass
x = 231; vec_crt=[8 18]; assert(isequal(your_fcn_name(x),vec_crt))

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

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!