MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Debugging MATLAB Code


22


Debug a MATLAB Program........................ 22-2
Set Breakpoint ............................... 22-2
Run File.................................... 22-3
Pause a Running File.......................... 22-4
Find and Fix a Problem......................... 22-4
Step Through File............................. 22-6
End Debugging Session........................ 22-7

Set Breakpoints................................. 22-8
Standard Breakpoints.......................... 22-9
Conditional Breakpoints....................... 22-10
Error Breakpoints............................ 22-11
Breakpoints in Anonymous Functions............. 22-11
Invalid Breakpoints .......................... 22-12
Disable Breakpoints.......................... 22-13
Clear Breakpoints............................ 22-13

Examine Values While Debugging................. 22-15
Select Workspace............................ 22-15
View Variable Value .......................... 22-15

Presenting MATLAB Code


23


Publish and Share MATLAB Code.................. 23-2
Create and Share Live Scripts in the Live Editor ...... 23-2
Publish MATLAB Code......................... 23-3
Add Help and Create Documentation.............. 23-5

Publishing Markup.............................. 23-7
Markup Overview............................. 23-7
Sections and Section Titles..................... 23-10
Text Formatting............................. 23-11
Bulleted and Numbered Lists................... 23-12
Text and Code Blocks......................... 23-13
External File Content ......................... 23-14
External Graphics............................ 23-15

xxiii
Free download pdf