MATLAB FINANCIAL DERIVATIVES TOOLBOX User Manual Page 68

  • Download
  • Add to my manuals
  • Print
  • Page
    / 119
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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).
Page view 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 118 119

Comments to this Manuals

No comments