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))
fid =
3
fid =
3
fid =
3
fid =
3
|
2 | Pass |
%%
code = fileread('counter.m');
assert(isempty(strfind(code, 'persistent')));
|
2197 Solvers
819 Solvers
Getting the indices from a vector
3208 Solvers
Find the maximum number of decimal places in a set of numbers
735 Solvers
Set the array elements whose value is 13 to 0
936 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!