-
1 Comment
Peng Liu
on 6 Mar 2016
This solution fails for large x > 1e15 due to floating point errors (e.g., 1e16+0.5==1e16).
Suggested Problems
-
Create matrix of replicated elements
383 Solvers
-
508 Solvers
-
458 Solvers
-
167 Solvers
-
Matrix of almost all zeros, except for main diagonal
184 Solvers
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!