Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
for ii=1:100
x = rand;
clear y z;
try
y = check(x);
catch
z = 'error';
end
end
assert(isequal(y,x))
assert(isequal(exist('y','var'),1))
assert(isequal(exist('z','var'),0))
|
2 | Pass |
for ii=1:100
x = -rand;
clear y z;
try
y = check(x);
catch
z = 'error';
end
end
assert(isequal(z,'error'))
assert(isequal(exist('y','var'),0))
assert(isequal(exist('z','var'),1))
|
Find state names that end with the letter A
553 Solvers
Replace NaNs with the number that appears to its left in the row.
1712 Solvers
167 Solvers
Fix the last element of a cell array
97 Solvers
Count decimal digits of a number
135 Solvers