Problem 2670. Error handling

If the input is a negative number, generate an error. Otherwise, return the number.

Solution Stats

35.39% Correct | 64.61% Incorrect
Last Solution submitted on Jan 10, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers58

Suggested Problems

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!