Cody

# Problem 44296. String Delimination and Outputting

Solution 3441928

Submitted on 27 Oct 2020 at 20:02
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
delim_str = 'apple pear'; str1 = 'apple'; assert(isequal(your_fcn_name(delim_str),str1))

Error in solution: Line: 2 Column: 10 Indexing with parentheses '()' must appear as the last operation of a valid indexing expression.

2   Fail
delim_str = 'apple pear pineapple'; str1 = 'apple'; assert(isequal(your_fcn_name(delim_str),str1))

Error in solution: Line: 2 Column: 10 Indexing with parentheses '()' must appear as the last operation of a valid indexing expression.

3   Fail
delim_str = 'one'; str1 = 'one'; assert(isequal(your_fcn_name(delim_str),str1))

Error in solution: Line: 2 Column: 10 Indexing with parentheses '()' must appear as the last operation of a valid indexing expression.

4   Fail
delim_str = 'one two three'; str1 = 'one'; assert(isequal(your_fcn_name(delim_str),str1))

Error in solution: Line: 2 Column: 10 Indexing with parentheses '()' must appear as the last operation of a valid indexing expression.

5   Fail
delim_str = '123 456'; str1 = '123'; assert(isequal(your_fcn_name(delim_str),str1))

Error in solution: Line: 2 Column: 10 Indexing with parentheses '()' must appear as the last operation of a valid indexing expression.

6   Fail
delim_str = '123456'; str1 = '123456'; assert(isequal(your_fcn_name(delim_str),str1))

Error in solution: Line: 2 Column: 10 Indexing with parentheses '()' must appear as the last operation of a valid indexing expression.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!