Cody

Solution 2146128

Submitted on 1 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
a = 1; b =3; y_correct = [1 10 100]; assert(isequal(your_fcn_name(a,b),y_correct))

y = []

Unrecognized function or variable 'x'. Error in your_fcn_name (line 4) y(i) = x*10^(i-1); Error in Test1 (line 4) assert(isequal(your_fcn_name(a,b),y_correct))

2   Fail
a = 5; b =1; y_correct = [5]; assert(isequal(your_fcn_name(a,b),y_correct))

y = []

Unrecognized function or variable 'x'. Error in your_fcn_name (line 4) y(i) = x*10^(i-1); Error in Test2 (line 4) assert(isequal(your_fcn_name(a,b),y_correct))

3   Fail
a = 7; b =6; y_correct = [7 70 700 7000 70000 700000] assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 7 70 700 7000 70000 700000 y = []

Unrecognized function or variable 'x'. Error in your_fcn_name (line 4) y(i) = x*10^(i-1); Error in Test3 (line 4) assert(isequal(your_fcn_name(a,b),y_correct))