Cody

Solution 2266002

Submitted on 9 May 2020 by Joshua Sonn
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   Pass
x ='Abbreviation of The Given String'; y_correct = 'A T G S '; assert(strcmp(your_fcn_name(x),y_correct)==1)

X = 1×8 uint16 row vector 65 32 32 84 32 71 32 83 c = 1×10 uint16 row vector 65 65 32 32 84 84 71 71 83 83 Cd = 1×8 uint16 row vector 65 65 84 84 71 71 83 83 Cd = 1×8 uint16 row vector 65 32 84 84 71 71 83 83 Cd = 1×8 uint16 row vector 65 32 84 32 71 71 83 83 Cd = 1×8 uint16 row vector 65 32 84 32 71 32 83 83 Cd = 1×8 uint16 row vector 65 32 84 32 71 32 83 32 y = 'A T G S '

2   Pass
x ='The Propose is to Make ABBREBIATION'; y_correct = 'T P M A '; assert(strcmp(your_fcn_name(x),y_correct)==1) % x ='The MATLAB Coder'; y_correct = 'T M C '; assert(strcmp(your_fcn_name(x),y_correct)==1)

X = 1×20 uint16 row vector 84 32 80 32 32 32 77 32 65 66 66 82 69 66 73 65 84 73 79 78 c = 1×12 uint16 row vector 84 84 80 80 32 32 32 32 77 77 65 65 Cd = 1×8 uint16 row vector 84 84 80 80 77 77 65 65 Cd = 1×8 uint16 row vector 84 32 80 80 77 77 65 65 Cd = 1×8 uint16 row vector 84 32 80 32 77 77 65 65 Cd = 1×8 uint16 row vector 84 32 80 32 77 32 65 65 Cd = 1×8 uint16 row vector 84 32 80 32 77 32 65 32 y = 'T P M A ' X = 1×10 uint16 row vector 84 32 77 65 84 76 65 66 32 67 c = 1×6 uint16 row vector 84 84 77 77 67 67 Cd = 1×6 uint16 row vector 84 84 77 77 67 67 Cd = 1×6 uint16 row vector 84 32 77 77 67 67 Cd = 1×6 uint16 row vector 84 32 77 32 67 67 Cd = 1×6 uint16 row vector 84 32 77 32 67 32 y = 'T M C '