Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
D = '5-Jan-2018';
y_correct = 1;
assert(isequal(Fri(D),y_correct))
|
2 | Pass |
D = '09/09/2019';
y_correct = 0;
assert(isequal(Fri(D),y_correct))
[Warning: Successfully converted the text to datetime using the format 'MM/dd/uuuu', but the format is ambiguous and could also be 'dd/MM/uuuu'. To create datetimes from text with
a specific format call:
datetime(textinput,'InputFormat',infmt)
]
[> In guessFormat (line 107)
In datetime (line 636)
In Fri (line 2)
In ScoringEngineTestPoint2 (line 3)
In solutionTest (line 5)]
|
3 | Pass |
D = '2000-01-01';
y_correct = 0;
assert(isequal(Fri(D),y_correct))
|
4 | Pass |
D = '2020-12-25';
y_correct = 1;
assert(isequal(Fri(D),y_correct))
|
Back to basics 4 - Search Path
321 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
Create matrix of replicated elements
321 Solvers
480 Solvers
353 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!