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
|
Return the largest number that is adjacent to a zero
3751 Solvers
Generate N equally spaced intervals between -L and L
563 Solvers
216 Solvers
338 Solvers
249 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!