Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 'on';
assert(isequal(onoff(x),y_correct))
y =
'on'
|
2 | Pass |
x = isempty('on');
y_correct = 'off';
assert(isequal(onoff(x),y_correct))
|
3 | Pass |
x = [];
y_correct = 'off';
assert(isequal(onoff(x),y_correct))
|
1312 Solvers
3651 Solvers
193 Solvers
Getting the row and column location from a matrix
192 Solvers
322 Solvers