Desktop Tools and Development Environment Previous page   Next Page

Correcting an M-File

To correct a problem in an M-file,

  1. Quit debugging.
  1. 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.

  1. Make changes to the M-file.
  2. Save the M-file.
  3. Set, disable, or clear breakpoints, as appropriate.
  4. Run the M-file again to be sure it produces the expected results.

Previous page  Disabling and Clearing Breakpoints Completing the Example Next page

© 1994-2005 The MathWorks, Inc.