MATLAB FINANCIAL DERIVATIVES TOOLBOX Manual de usuario Pagina 68

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 119
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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).
Vista de pagina 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 118 119

Comentarios a estos manuales

Sin comentarios