Stuart’s MATLAB Videos

Watch and Learn

Using DBstack in MATLAB to get a stack trace

Posted by Doug Hull,

When you have timers and callbacks in your code, it can be difficult to find out when certain errors are occuring. Use DBstack to find the debug stack trace in MATLAB. This will allow you to find out what function called your current function, and what function called that function. This is very important when you have multiple enty points for a given function.

4 views (last 30 days)  | |

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.