Cody

# Problem 1638. JOIN STRINGS

Solution 1572135

Submitted on 30 Jun 2018
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
str='MATLABian'; str1='My name'; str3='kjhsdfs'; y_correct ='MATLABian My name kjhsdfs'; assert(strcmp(your_fcn_name(str,str1,str3),y_correct)==1)

ans = 1×2 string array "MATLABian" " " ans = 1×4 string array "MATLABian" " " "My name" " " ans = 1×5 string array "MATLABian" " " "My name" " " "kjhsdfs"

Error using assert The condition input argument must be a scalar logical. Error in Test1 (line 5) assert(strcmp(your_fcn_name(str,str1,str3),y_correct)==1)

2   Fail
str='This'; str1='is'; str3='MATLAB'; y_correct ='This is MATLAB'; assert(strcmp(your_fcn_name(str,str1,str3),y_correct)==1)

ans = 1×2 string array "This" " " ans = 1×4 string array "This" " " "is" " " ans = 1×5 string array "This" " " "is" " " "MATLAB"

Error using assert The condition input argument must be a scalar logical. Error in Test2 (line 5) assert(strcmp(your_fcn_name(str,str1,str3),y_correct)==1)