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
-
Omit columns averages from a matrix
595 Solvers
-
9514 Solvers
-
237 Solvers
-
Find Out sum of principal diagonal element of given matrix
251 Solvers
-
Compute LOG(1+X) in natural log
253 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!