This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = -5; n = 3;
y_correct = 8.946043924176486;
assert(isequal(your_fcn_name(x,n),y_correct))
ans =
8.9460
|
2 | Pass |
x = 1; n = 10;
y_correct = 10;
assert(isequal(your_fcn_name(x,n),y_correct))
ans =
10
|
5833 Solvers
Who knows the last digit of pi?
557 Solvers
Back to basics 22 - Rotate a matrix
763 Solvers
Flip the vector from right to left
2675 Solvers
262 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!