MATLAB POLYSPACE 7 Guia de Instalação Página 328

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 327
6 Editing and Debugging M-Files
Note that Middle Initial is g r een, which is the syntax highlighting color for
a comment.
MATLAB continues processing the statement with the next line
MATLAB effectively runs
Formatting Comments in M-Files
To make comme
nt lines in M-files wrap when they reach a certain column,
1 Specify the maximum column number using preferences for the
Editor/Debugger. Select Language > M.ForCommen t formatting,set
the Max width.
2 Select contiguous comment lines that you want to limit to the specified
maximum width.
3 Select Text
>WrapSelectedComments.
The selecte
d comment lines are reformattedsothatnocommentlineinthe
selected ar
ea is longer than the maximum . Lines that were shorter than
the specif
ied maximum are merged to make longer lines if they are at the
same level
of indentation.
To automat
ically limit comment lines to the maximum width while you type,
select the
Comment formatting preference to Autowrap comments.
For examp
le, assum e you select Autowrap comments and set the maximum
width to b
e 75 characters, which is the w idth that will fit on a printed page
using the
default font for the Editor/Debugger. When typing a comment line,
6-20
Vista de página 327
1 2 ... 323 324 325 326 327 328 329 330 331 332 333 ... 617 618

Comentários a estes Manuais

Sem comentários