The signum function is a common mathematical function, which has the following definition :
If x => 0, its value is 1, if x < 0 its value is -1.
Given the value of x, implement the signum function.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers15
Suggested Problems
-
Is my wife right? Now with even more wrong husband
1348 Solvers
-
Create a square matrix of multiples
502 Solvers
-
Implement simple rotation cypher
1098 Solvers
-
Removing rows from a matrix is easy - but what about inserting rows?
277 Solvers
-
1510 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!