Signed Magnitude - MATLAB Cody - MATLAB Central

Problem 1943. Signed Magnitude

Difficulty:Rate

For a given input vector, return the value that is furthest from zero.

For example, if

x = [1 2 -12]

return -12.

Solution Stats

63.27% Correct | 36.73% Incorrect
Last Solution submitted on Nov 16, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers129

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page