MATLAB POLYSPACE 7 Installationsanleitung Seite 429

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 618
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 428
Debugging Process a nd Features
dbclear all in collatzplot
Breakpoints a re automatically cleared when you
E nd the MATLAB session
Clear the M-file using
clear name or clear all
Note When clear name or clear all is in a statement in a n M-file that you
are debugging, it clears the breakpoints.
Saving Breakpoints
You can use the s=dbstatus syntax and then save s to save the current
breakpoints to a MAT-file. At a later time, you can load
s and restore the
breakpoints using
dbstop(s). For m ore inf o rmation, includin g an e xample,
see the
dbstatus reference page.
Correcting an M-File
To correct a problem in an M-file,
1 Quit debugging.
Do not make changes to an M-file while M ATLAB is in debug mode. If you
do edit an M-file while in debug mode, breakpoints turn gray, indicating
that results might not be reli able. See“Valid (Red ) and I n valid (Gray)
Breakpoints” on page 6-109 for details.
2 Make changes to the M-file.
3 Save the M -file.
4 Set, disable, or clear breakpoints, a s appropria te.
5 Run the M -file again to be sure it produces the expected results.
Completing the Example
To correct the problem in the example, do the following:
6-121
Seitenansicht 428
1 2 ... 424 425 426 427 428 429 430 431 432 433 434 ... 617 618

Kommentare zu diesen Handbüchern

Keine Kommentare