Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
h = counter;
assert(isequal(h(), 1))
assert(isequal(h(), 2))
assert(isequal(h(), 3))
assert(isequal(h(), 4))
assert(isequal(h(), 5))
|
2 | Pass |
%%
code = fileread('counter.m');
assert(isempty(strfind(code, 'persistent')));
|
Back to basics 9 - Indexed References
348 Solvers
167 Solvers
middleAsColumn: Return all but first and last element as a column vector
316 Solvers
205 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
196 Solvers