This approach should work as well, but the results are not exactly equal (<1e-14 error). I suggest adding a tolerance to the test suite.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
dVec = logspace(0,1,101);
d = VectorFunc();
assert(isequal(d,dVec))
Error: Assertion failed.
|
1159 Solvers
306 Solvers
Flip the main diagonal of a matrix
506 Solvers
184 Solvers
275 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!