How to Debug MATLAB Code

preview_player
Показать описание
Learn about the built-in MATLAB® debugger tools, which help catch bugs while coding. The video begins by explaining the types of bugs you may encounter while coding. You then see how to use MATLAB to examine error messages and use the debugger tools (breakpoints, step, continue, etc.) to identify where bugs are occurring.

To illustrate these debugging techniques, the video uses code for calculating the 10th Fibonacci number. You’ll see an example of the types of errors, and you’ll learn how to correct them based on what is present in the MATLAB user interface. You’ll also get an overview of other best practices for debugging settings.

Additional Resources:
--------------------------------------------------------------------------------------------------------

© 2021 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
Рекомендации по теме
Комментарии
Автор

I checked the boxes for pause on error and pause on warnings but I do not get that debug mode you are showing.

tzgardner
Автор

Yes same my code is also correct but simulation are not showing!!

aishachauhan
Автор

Hy I have problam on MATLAB. My code is correct but simulation are not showing what is the reason for that ?

miniduanupa