Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x1 = 'a';
x2= 'b';
y_correct = 'ab';
assert(isequal(concatstrings(x1,x2),y_correct))
y =
'ab'
|
2 | Pass |
x1 = 'a';
x2= 'b';
x3= 'c';
y_correct = 'abc';
assert(isequal(concatstrings(x1,x2,x3),y_correct))
y =
'abc'
|
3 | Pass |
x1 = 'my';
x2= ' ';
x3= 'holiday';
x4= ' ';
x5= 'is';
x6= ' almost over!';
y_correct = 'my holiday is almost over!';
assert(isequal(concatstrings(x1,x2,x3,x4,x5,x6),y_correct))
y =
'my holiday is almost over!'
|
4 | Pass |
assert(isempty(concatstrings()))
y =
0×0 empty char array
|
Number of 1s in a binary string
2827 Solvers
2545 Solvers
Determine the number of odd integers in a vector
435 Solvers
360 Solvers
359 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!