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
-
Numbers with prime factors 2, 3 and 5.
679 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
13410 Solvers
-
867 Solvers
-
Simple equation: Annual salary
4243 Solvers
-
Add a row of zeros on top of a matrix
265 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!