Using otherwise to throw errors in a switch case
This video shows a technique for catching this problem. It is important to catch these errors from unexpected inputs immediately, because they can have effects on your code much farther down the line. When this happens, it would be hard to trace back to the cause.
- Category:
- Format: Video,
- Level: Basic
Comments
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.