Issue Warnings and Errors ................................
27-13
Issue Warnings .......................................
27-13
Throw Errors ........................................
27-13
Add Run-Time Parameters to Your Warnings and Errors ........
27-14
Add Identifiers to Warnings and Errors .....................
27-14
Suppress Warnings ......................................
27-16
Turn Warnings On and Off ..............................
27-16
Restore Warnings .......................................
27-18
Disable and Restore a Particular Warning ...................
27-18
Disable and Restore Multiple Warnings .....................
27-19
Change How Warnings Display .............................
27-20
Enable Verbose Warnings ...............................
27-20
Display a Stack Trace on a Specific Warning .................
27-20
Use try/catch to Handle Errors .............................
27-21
Program Scheduling
28
Schedule Command Execution Using Timer ...................
28-2
Overview ............................................
28-2
Example: Displaying a Message ...........................
28-2
Timer Callback Functions ..................................
28-4
Associating Commands with Timer Object Events ..............
28-4
Creating Callback Functions ..............................
28-5
Specifying the Value of Callback Function Properties ...........
28-6
Handling Timer Queuing Conflicts ..........................
28-8
Drop Mode (Default) ....................................
28-8
Error Mode ..........................................
28-9
Queue Mode .........................................
28-10
Performance
29
Measure the Performance of Your Code ......................
29-2
Overview of Performance Timing Functions ..................
29-2
Time Functions ........................................
29-2
Time Portions of Code ...................................
29-2
The cputime Function vs. tic/toc and timeit ...................
29-2
Tips for Measuring Performance ...........................
29-3
Profile Your Code to Improve Performance ....................
29-4
What Is Profiling? ......................................
29-4
Profile Your Code ......................................
29-4
xxiii
Précédent

- 23/1450

Suivant