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.
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。