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 Solvers61
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2815 Solvers
-
Solve the set of simultaneous linear equations
504 Solvers
-
Remove white space from the string
208 Solvers
-
742 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
601 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!