MATLAB POLYSPACE 7 Instalační příručka Strana 326

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 618
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 325
1 2 ... 321 322 323 324 325 326 327 328 329 330 331 ... 617 618

Komentáře k této Příručce

Žádné komentáře