Answers are wrong. They ignore leap days. There are four from 15-Jan-2000 thru May 2012. function datenum provides correct answer
I agree with Richard. I also think that the first two out of the three test cases are wrong.
I also agree with the above comments
as do i
I went ahead and updated the test.
daysact(x1,x2) not working
Is there a mistake in the problem or the site?
@Szász Botond, daysact is a part of Financial toolbox system which Cody doesn't support.
function ans = countDays(x1,x2)
this working my system but test suit fails
daysdif() is a part of Financial toolbox system which Cody doesn't support.
Find the two-word state names
Wrapping the Tower of Pisa
Replicate elements in vectors
Equal to their cube
Soccer - TOTO
Are all the three given point in the same line?
Replace Vector Elements
Calculate the area of a triangle between three points
mathematics , probability problem
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office