Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
DepTime = datetime(2016,11,[1;1;1;1;1;1;2;2;2;2;3;3;3;3;3],...
[6;7;7;8;8;9;4;6;8;3;10;5;8;4;2],[22;27;39;43;46;17;41;40;10;8;30;58;21;36;14],0);
ArrTime = datetime(2016,11,[1;1;1;1;1;1;2;2;2;2;3;3;3;3;3],...
[9;10;10;13;11;12;7;9;11;6;13;8;11;7;5],[17;32;09;03;26;46;13;20;19;28;40;38;27;32;24],0);
Destination = categorical([1;2;1;1;1;1;2;1;3;2;1;3;3;1;2],1:3,{'BOS';'NYC';'DC'});
tt = timetable(DepTime,Destination,ArrTime);
Dur = [duration(3,9,05);duration(2,55,15);duration(3,0,24)];
ttDur = myFun(tt);
assert(all(abs(ttDur - Dur) <= 0.01))
ans =
1
1
1
1
1
1
2
2
2
2
3
3
3
3
3
|
895 Solvers
Numbers with prime factors 2, 3 and 5.
166 Solvers
620 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
511 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!