MATLAB FINANCIAL DERIVATIVES TOOLBOX Bedienungsanleitung Seite 81

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 119
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 80
80
(Figure copied from [2])
Matlab function names have the same constraints as variable names. The
name must begin with a letter, which may be followed by any combination of
letters, digits, and underscores. Making all letters in the name lowercase is
recommended as it makes your m-files portable between platforms (of course
the use of upper case assures that the functions names you create do not
resemble any other Matlab function and/or reserved word). The name of the
text file that contains a Matlab function consists of the function name with
the extension .m appended. For example, DiagExtract.m”.
If the filename and the function definition line name are different, the internal
(
f
f
u
u
n
n
c
c
t
t
i
i
o
o
n
n) name is ignored. Thus, if “DiagExtract.m” is the file that defines a
function named:
d
d
i
i
a
a
g
g
o
o
n
n
a
a
l
l
_
_
e
e
x
x
t
t
r
r
a
a
c
c
t
t
i
i
o
o
n
n, you would invoke the function by
typing in the command window:
D
D
i
i
a
a
g
g
E
E
x
x
t
t
r
r
a
a
c
c
t
t
Concerning function arguments, if the function has multiple output values,
enclose the output argument list in square brackets “[ ]”. Input arguments, if
present, are enclosed in parentheses “( )”. Use commas to separate multiple
inputs or output arguments. Here's a more complicated example:
f
f
u
u
n
n
c
c
t
t
i
i
o
o
n
n [Abs, Mean, Std] =
S
S
t
t
a
a
t
t
i
i
s
s
t
t
i
i
S
S(X, Y, Z)”
If there is no output, leave the output blank:
f
f
u
u
n
n
c
c
t
t
i
i
o
o
n
n
p
p
r
r
i
i
n
n
t
t
_
_
r
r
e
e
s
s
u
u
l
l
t
t
s
s(x)”
or use empty square brackets:
Seitenansicht 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 118 119

Kommentare zu diesen Handbüchern

Keine Kommentare