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 Solvers62
Suggested Problems
-
Determine whether a vector is monotonically increasing
23355 Solvers
-
Return the 3n+1 sequence for n
8513 Solvers
-
2251 Solvers
-
10794 Solvers
-
Arrange vector in ascending order
822 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!