O'Reilly logo

MATLAB® by Example by Francis Lilley, Munther Gdeisat

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8

Matlab Debugging, Profiling, and Code Indentation

Chapter Outline

Lesson 8.1 Matlab Debugging

Lesson 8.2 Debugging Matlab Functions

Lesson 8.3 Advanced Matlab Debugging Tools

Lesson 8.4 The Matlab Profiler Tool

Lesson 8.5 Matlab Code Indentation

Answers to Selected Exercises

Lesson 8.1 Matlab Debugging

Objectives

• To learn the differences between syntax errors and runtime errors.

• To learn how to debug Matlab script files.

• To learn how to use the Breakpoint tool to debug Matlab code.

• To learn how to run one line of a program using the Step tool.

Topics

8.1.1 Syntax and Runtime Errors

8.1.1.1 Syntax Errors

8.1.1.2 Runtime Errors

8.1.2 Debugging Matlab Code

8.1.2.1 Setting Up a Breakpoint

8.1.2.2 Stepping Through the Program

8.1.1 Syntax ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required