This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 0.5555;
n = 3
y_correct = round(x*10^(n-1))/(10^(n-1));
assert(isequal(your_fcn_name(x,n),y_correct))
n =
3
n =
3
|
Sum all integers from 1 to 2^n
8412 Solvers
Project Euler: Problem 4, Palindromic numbers
245 Solvers
convert matrix to single column
306 Solvers
Number of Even Elements in Fibonacci Sequence
665 Solvers
305 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!