MATLAB FINANCIAL DERIVATIVES TOOLBOX Instrukcja Użytkownika Strona 68

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 119
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 67
67
Comments:
Locating the maximum of the peak function via an exhaustive
search. “Fmax=
m
m
a
a
x
x(max(Z))” stores in F
m
m
a
a
x
x the maximum value
of the
Z
Z matrix that is equal to 7.9966. “P=
f
f
i
i
n
n
d
d(Z==Fmax)” returns
in
P
P the element index (a single value) where
Z
Z is equal to
F
F
m
m
a
a
x
x
;
;
specifically the
Z
Z element with index number 1343 has the value
of 7.9966. Finally, in
x
x
y
y we store the x-and-y coordinates of the
maximum point. “
M
M
a
a
r
r
k
k
e
e
r
r
S
S
i
i
z
z
e
e” in the
p
p
l
l
o
o
t
t command creates a
lager size mark symbol.
For practice try to write your own code to find the global minimum of the
peaks function (you can also try to find the local minima and maxima but
this is tricky).
Przeglądanie stron 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 118 119

Komentarze do niniejszej Instrukcji

Brak uwag