Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
h = counter;
assert(isequal(h(), 1))
assert(isequal(h(), 2))
assert(isequal(h(), 3))
assert(isequal(h(), 4))
assert(isequal(h(), 5))
h =
1
|
2 | Pass |
code = fileread('counter.m');
assert(isempty(strfind(code, 'persistent')));
|
115 Solvers
The Hitchhiker's Guide to MATLAB
2874 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
Split a string into chunks of specified length
475 Solvers
Vector of numbers divisible by 3
126 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!