Stuart’s MATLAB Videos

Watch and Learn

MATLAB Basics: Using dbstop if error

When MATLAB throws an error, if you are in a function, you will end up at the base workspace and lose access to the variables as they were in the function when the error was thrown. This makes it difficult to understand why the error occurred. With the debugger, MATLAB can stop when the error is thrown, so the variables are still in scope. This makes debugging much easier.
  • print


要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。