MATLAB FINANCIAL DERIVATIVES TOOLBOX Uživatelský manuál Strana 21

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 119
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 20
20
“s =
0.65321”
Blank spaces around the “=”, “+”, and “-“operators are optional, but they
improve readability.
Command Line Editing
Various arrow and control keys on your keyboard allow you to recall, edit,
and reuse statements you have typed earlier. For example, suppose you
mistakenly enter:
“rho = (1 + sqt(5))/2”
You have misspelled square root:
s
s
q
q
r
r
t
t. Matlab responds with:
“Undefined function or variable 'sqt'”
Instead of retyping the entire line, simply press the key. The 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 that begins with those
characters. You can also copy previously executed statements from the
command history window [2].
Interrupting a Command, a Script or a Function
It is often that a user writes a command (or script or a function) that enters
to an endless loop, so it keeps running. Pressing [Ctrl]+[C] once or few times,
it will terminate the execution. Sometimes where the user runs a script that
calls other functions, the interruption with [Ctrl]+[C] might take few seconds
to few minutes to take place.
Current Directory
On the command window toolbar, the user can find the current directory
address bar. Matlab file operations use the current directory and the search
path as reference points. Any file you want to run must either be in the
Zobrazit stránku 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 118 119

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

Žádné komentáře