Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = '24-Oct-2016 20:26:28';
y_correct = '73588000000';
assert(isequal(microsecondsPassedToday(x),y_correct))
|
2 | Pass |
x = '24-Oct-2016 20:29:48';
y_correct = '73788000000';
assert(isequal(microsecondsPassedToday(x),y_correct))
|
3 | Pass |
x = '14-Feb-2002 08:19:04';
y_correct = '29944000000';
assert(isequal(microsecondsPassedToday(x),y_correct))
|
4 | Pass |
x = '07-Apr-1902 10:00:00';
y_correct = '36000000000';
assert(isequal(microsecondsPassedToday(x),y_correct))
|
5 | Pass |
x = '11-Nov-1911 11:11:11';
y_correct = '40271000000';
assert(isequal(microsecondsPassedToday(x),y_correct))
|
874 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3617 Solvers
187 Solvers
Create an index-powered vector
352 Solvers
89 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!