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')));
|
Find the peak 3n+1 sequence value
1107 Solvers
434 Solvers
Back to basics 16 - byte order
172 Solvers
Replace all zeros and NaNs in a matrix with the string 'error'
90 Solvers
246 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!