Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
aMat = ones(9,9)*2;
bMat = diag([1:5 4:-1:1]);
cMat = reshape(1:100,10,10);
zRef = det(cMat)*(aMat*bMat)'
zMat = MyFunc();
assert(isequal(zRef,zMat))
zRef =
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
|
2 | Pass |
%%
Ref = ones(9,9)*2;
[zMat Mat] = MyFunc();
assert(isequal(Ref,Mat))
|
3 | Pass |
%%
Ref = diag([1:5 4:-1:1]);
[zMat a Mat] = MyFunc();
assert(isequal(Ref,Mat))
|
4 | Pass |
%%
Ref = reshape(1:100,10,10);
[zMat a b Mat] = MyFunc();
assert(isequal(Ref,Mat))
|
Return the largest number that is adjacent to a zero
3108 Solvers
Swap the first and last columns
9882 Solvers
Determine if a Given Number is a Triangle Number
286 Solvers
Output any real number that is neither positive nor negative
250 Solvers
196 Solvers