This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
b = 2;
y_correct = 12;
assert(isequal(your_fcn_name(x,b),y_correct))
y =
1 2
x =
0
|
2 | Pass |
x = 2;
b = 1;
c = 0;
y_correct = 210;
assert(isequal(your_fcn_name(x,b,c),y_correct))
y =
2 1 0
x =
0
|
Sum all integers from 1 to 2^n
8412 Solvers
Arrange Vector in descending order
4075 Solvers
292 Solvers
323 Solvers
144 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!