MATLAB POLYSPACE RELEASE NOTES Manual do Utilizador Página 54

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 240
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 53
2 Matrices and Arra ys
Entering Long Statements
If a statement does not fit on one line, use an ellipsis (three periods), ...,
followed by Return or Enter to indicate that the statement continues on
the next line. For example,
s = 1 -1/2 + 1/3 -1/4 + 1/5 - 1/6 + 1/7 ...
- 1/8 + 1/9 - 1/10 + 1/11 - 1/12;
Blank spaces around the =, +, and - signs are optional, but they improve
readability.
Command Line Editing
Various arrow and control keys o n your keyboard allow you to recall, edit,
and reuse statements y ou have typed earlier. For examp le, suppose you
mistakenly enter
rho = (1 + sqt(5))/2
You have misspelled sqrt. MATLAB responds with
Undefined function or variable 'sqt'.
Instead of retyping the entire line, simply press the key. T he statement
you typed is redisplayed. Use the
key to move the cursor over and insert
the missing
r. Repeated use of the key recalls earlier lines. Typing a few
characters and then the
key finds a previous line t hat beg ins w ith those
characters. You can also copy p revi ously executed statements from the
Command History. For more information, see “Command History” on page 7-7.
Following is the list of arrow an d co ntro l keys you can use in the Command
Window. If the preference you select for “Command Window K ey Binding s”
is
MATLAB standard (Emacs),youcanalsousetheCtrl+key combinations
shown. See also general keyboard shortcuts for desktop tools in the MATLAB
Desktop Tools and Development Environm ent documentation.
2-32
Vista de página 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 239 240

Comentários a estes Manuais

Sem comentários