This solution is outdated. To rescore this solution, sign in.
-
1 Comment
dymaxwell
on 22 Aug 2018
Because of the floating point arithmetic, the last elsement of vector b may be different from the right answer(usually 1 smaller than it). So I add 1e-4 at last to mend it.
Suggested Problems
-
7358 Solvers
-
1209 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
613 Solvers
-
9520 Solvers
-
Output any real number that is neither positive nor negative
399 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!