Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
str1 = 'apple';
str2 = 'pear';
concat_str = 'elppa pear';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'elppa'
|
2 | Pass |
str1 = 'one';
str2 = 'two';
concat_str = 'eno two';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'eno'
|
3 | Pass |
str1 = 'one two';
str2 = 'three four';
concat_str = 'owt eno three four';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'owt eno'
|
4 | Pass |
str1 = 'hello';
str2 = 'there';
concat_str = 'olleh there';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'olleh'
|
5 | Pass |
str1 = 'This is half a sentence;';
str2 = 'here is the other half.';
concat_str = ';ecnetnes a flah si sihT here is the other half.';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
';ecnetnes a flah si sihT'
|
6 | Pass |
str1 = 'left';
str2 = 'right';
concat_str = 'tfel right';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'tfel'
|
7 | Pass |
str1 = 'right';
str2 = 'left';
concat_str = 'thgir left';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'thgir'
|
8 | Pass |
str1 = ' leading space';
str2 = 'trailing space ';
concat_str = 'ecaps gnidael trailing space ';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'ecaps gnidael '
|
9 | Pass |
str1 = '123';
str2 = '456';
concat_str = '321 456';
assert(isequal(your_fcn_name(str1, str2),concat_str))
s =
'321'
|
4327 Solvers
Back to basics 8 - Matrix Diagonals
781 Solvers
Set the array elements whose value is 13 to 0
935 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
992 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!