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 Solvers59
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2749 Solvers
-
given 3 sides, find area of this triangle
807 Solvers
-
1561 Solvers
-
Getting the row and column location from a matrix
288 Solvers
-
1297 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!