Problem 2670. Error handling
If the input is a negative number, generate an error. Otherwise, return the number.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers60
Suggested Problems
-
514 Solvers
-
Back to basics 11 - Max Integer
807 Solvers
-
536 Solvers
-
Remove white space from the string
206 Solvers
-
540 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!