MATLAB POLYSPACE 7 Guide d'installation Page 326

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 618
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 325
6 Editing and Debugging M-Files
To com m ent a contiguous group of lines, type %{ before the first line and
%} afterthelastlineyouwanttocomment. Thisisreferredtoasablock
comment. The lines that contain
%{ and %} can contain spaces, but not
contain any other text. After typing the opening block comment symbol,
%{,
all subsequent lines assume the syntax highlighting color for comments until
you type the closing block c o mment symbol,
%}. Remove the blo ck comment
symbols,
%{ and %}, to uncomment the lines.
This examples shows some lines of code commented out. When you run the
M-file, the commented lines will not execute. This is useful when you want to
identify the section of a file thatisnotworkingasexpected.
You can easily extend a block comment wi thout lo sing the original block
comment, that is, create a nested block comment, as shown in the following
example.
6-18
Vue de la page 325
1 2 ... 321 322 323 324 325 326 327 328 329 330 331 ... 617 618

Commentaires sur ces manuels

Pas de commentaire