Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
filetext = fileread('time_for_five.m');
assert(isempty(strfind(filetext, 'fopen')));
assert(isempty(strfind(filetext, 'assert')));
|
2 | Pass |
y = time_for_five(5);
a=clock;
if mod(floor(a(6)),5)==0
y_correct= y
else
y_correct = NaN;
end
assert(isequal(y,y_correct))
y_correct =
2017 10 18 15 22 4
|
Back to basics 23 - Triangular matrix
532 Solvers
322 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
199 Solvers
272 Solvers
312 Solvers