If the input is a negative number, generate an error. Otherwise, return the number.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers60
Suggested Problems
-
Program an exclusive OR operation with logical operators
749 Solvers
-
find the maximum element of the matrix
535 Solvers
-
370 Solvers
-
Matlab Basics - Absolute Value
668 Solvers
-
6012 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!