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
-
Rotate input square matrix 90 degrees CCW without rot90
671 Solvers
-
9966 Solvers
-
Area of an equilateral triangle
6715 Solvers
-
Sum the 'edge' values of a matrix
393 Solvers
-
Matlab Basics - Convert a row vector to a column vector
668 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!