Problem 1943. Signed Magnitude
For a given input vector, return the value that is furthest from zero.
For example, if
x = [1 2 -12]
return -12.
Solution Stats
Problem Comments
-
1 Comment
Jon
on 9 Apr 2014
Really needs a better test suite that doesn't have the correct answer in the same position.
Solution Comments
Show commentsProblem Recent Solvers129
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6395 Solvers
-
Get the length of a given vector
11694 Solvers
-
Remove the two elements next to NaN value
659 Solvers
-
Check if number exists in vector
12517 Solvers
-
Sum the 'edge' values of a matrix
360 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!