make a function which will round to integer, which is nearer to zero.
Example
x=[-2.5 2]; y=[-2 2];
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers226
Suggested Problems
-
443 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
406 Solvers
-
Is this triangle right-angled?
6695 Solvers
-
Matlab Basics II - Create a vector with a repeated entry
254 Solvers
-
914 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!