Cody

Solution 2148274

Submitted on 2 Mar 2020
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
x = 23; vec_crt=[1 23]; assert(isequal(your_fcn_name(x),vec_crt))

Array indices must be positive integers or logical values. Error in your_fcn_name (line 6) vec = [ find(s==t(end))+1 x-t(end)] Error in Test1 (line 3) assert(isequal(your_fcn_name(x),vec_crt))

2   Pass
x = 54; vec_crt=[2 23]; assert(isequal(your_fcn_name(x),vec_crt))

vec = 2 23

3   Pass
x = 231; vec_crt=[8 18]; assert(isequal(your_fcn_name(x),vec_crt))

vec = 8 18

4   Pass
x = 300; vec_crt=[10 26]; assert(isequal(your_fcn_name(x),vec_crt))

vec = 10 26

Suggested Problems

More from this Author18