Problem 60997. Multiply real numbers to get the smallest integers
Write a function that takes a vector of real numbers and multiplies them by a factor to produce the integers with the smallest absolute value. For example, if the input vector is [3/4 5/6 7/10], the output should be [45 50 42]; that is, the input vector should be multiplied by 60.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
More from this Author310
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!