Cody

Problem 720. Find number of days

Solution 490312

Submitted on 25 Aug 2014
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   Fail
%% x1 = '15-jan-2000'; x2 = '24-may-2012'; y_correct = 4513; assert(isequal(countDays(x1,x2),y_correct))

Error: Undefined function 'daysdif' for input arguments of type 'char'.

2   Fail
%% x1 = '15-jan-1000'; x2 = '24-may-2012'; y_correct = 369755; assert(isequal(countDays(x1,x2),y_correct))

Error: Undefined function 'daysdif' for input arguments of type 'char'.

3   Fail
%% x1 = '24-may-2013'; x2 = '24-may-2012'; y_correct = 365; assert(isequal(countDays(x1,x2),y_correct))

Error: Undefined function 'daysdif' for input arguments of type 'char'.

Suggested Problems

More from this Author11

Community Treasure Hunt

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

Start Hunting!