Cody

Solution 1583374

Submitted on 14 Jul 2018 by bainhome
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 = 'a=[1 2 3 4 5];'; y_correct = 5; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = 'a=ones(1,10);'; y_correct = 10; assert(isequal(your_fcn_name(x),y_correct));

3   Pass
x = 'a=zeros(0,0);'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

4   Pass
x = 'a=1:10'; y_correct = 10; assert(isequal(your_fcn_name(x),y_correct))

5   Pass
x = 'a=1:2:10;'; y_correct = 5; assert(isequal(your_fcn_name(x),y_correct))

6   Pass
x = 'a=[];'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

7   Pass
x = 'a=ones(10,1);'; y_correct = 10; assert(isequal(your_fcn_name(x),y_correct));