Desktop Tools and Development Environment |
|
Correcting an M-File
To correct a problem in an M-file,
- Quit debugging.
- Do not make changes to an M-file while MATLAB is in debug mode. If you do edit an M-file while in debug mode, breakpoints turn gray, indicating that results might not be reliable. See Valid (Red) and Invalid (Gray) Breakpoints for details.
- Make changes to the M-file.
- Save the M-file.
- Set, disable, or clear breakpoints, as appropriate.
- Run the M-file again to be sure it produces the expected results.
| Disabling and Clearing Breakpoints | | Completing the Example | |
© 1994-2005 The MathWorks, Inc.