Surely these ! echo "function assert(~) " >./assert.m solutions are not valid?
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 10;
flagSame = isequal(makeRandomOrdering(n), makeRandomOrdering(n));
flagAllUsed = isequal([1:n],sort(makeRandomOrdering(n)));
assert(~flagSame & flagAllUsed)
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In makeRandomOrdering (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In makeRandomOrdering (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In makeRandomOrdering (line 2)
In ScoringEngineTestPoint1 (line 4)
In solutionTest (line 3)]
|
1400 Solvers
162 Solvers
Find the largest value in the 3D matrix
898 Solvers
Getting the row and column location from a matrix
192 Solvers
find the surface area of a cube
215 Solvers