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
580 Solvers
-
291 Solvers
-
Find out sum of all elements of given Matrix
496 Solvers
-
Matlab Basics - Convert a row vector to a column vector
617 Solvers
-
Replace every 3rd element in a vector with 4
244 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!