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
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52687 Solvers
-
11990 Solvers
-
627 Solvers
-
Given a matrix, return the last eigen value
231 Solvers
-
Find the dimensions of a matrix
557 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!