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
-
Get the area codes from a list of phone numbers
1066 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3462 Solvers
-
Back to basics 19 - character types
266 Solvers
-
Check if number exists in vector
12994 Solvers
-
480 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!