Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x1 = '15-jan-2000';
x2 = '24-may-2012';
y_correct = 4513;
assert(isequal(countDays(x1,x2),y_correct))
|
2 | Pass |
%%
x1 = '15-jan-1000';
x2 = '24-may-2012';
y_correct = 369755;
assert(isequal(countDays(x1,x2),y_correct))
|
3 | Pass |
%%
x1 = '24-may-2013';
x2 = '24-may-2012';
y_correct = 365;
assert(isequal(countDays(x1,x2),y_correct))
|
Back to basics 21 - Matrix replicating
1052 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Cell Counting: How Many Draws?
581 Solvers
Generate a random matrix A of (1,-1)
210 Solvers
271 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!