MATLAB FINANCIAL DERIVATIVES TOOLBOX Manuel d'utilisateur Page 68

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 119
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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).
Vue de la page 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 118 119

Commentaires sur ces manuels

Pas de commentaire