MATLAB FINANCIAL DERIVATIVES TOOLBOX Uživatelský manuál Strana 55

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 119
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 54
54
to mark each plotted point with a symbol. To do this, the user should call
the plot function as:
p
p
l
l
o
o
t
t(X,Y, '???')”
where “?” represents the color, “?” the mark style and “?” the line style (if
not given, then Matlab uses a default style). Table 5 tabulates the plot
facilities (see also the online help).
Symbol
Color (?) Symbol Line Style (?)
g Green -, :, -., -- Solid, dotted, dash dot and dashed
r Red
c Cyan Symbol Mark Style (?)
m Magenta ., o, x Point, circle and x-mark
y Yellow +, *, s Plus, star and square
k Black d, v Diamond and triangle down
^, <, > Triangles: up, left and right
p, h, Pentagram, hexagram and solid
Table 5: Plot colour and line styles.
Moreover, Table 6 lists additional commands that are useful when using the
p
p
l
l
o
o
t
t function.
Function Comment
a
a
x
x
i
i
s
s
Sets the minimum and maximum values of axes.
c
c
l
l
f
f
Clear the current figure.
c
c
l
l
o
o
s
s
e
e (all) Closes the current (all) figure(s).
f
f
i
i
g
g
u
u
r
r
e
e
Creates a new figure window.
g
g
r
r
i
i
d
d
o
o
n
n/
o
o
f
f
f
f Adds/removes major grid lines to the current axes.
g
g
t
t
e
e
x
x
t
t('text') Adds text to a figure manually, by the use of mouse.
h
h
o
o
l
l
d
d
o
o
n
n/
o
o
f
f
f
f
h
h
o
o
l
l
d
d
o
o
n
n/
o
o
f
f
f
f holds the current plot and all axis
properties so that subsequent graphing commands
add to the existing graph.
l
l
e
e
g
g
e
e
n
n
d
d('text')/
l
l
e
e
g
g
e
e
n
n
d
d
o
o
f
f
f
f
Adds (removes) a legend to the graph.
l
l
o
o
g
g
l
l
o
o
g
g
The same as with
p
p
l
l
o
o
t
t but logarithmic scale axes
are used.
s
s
e
e
m
m
i
i
l
l
o
o
g
g
x
x
The same as with
p
p
l
l
o
o
t
t with the exception that
logarithmic scale is used for X-axis.
s
s
e
e
m
m
i
i
l
l
o
o
g
g
y
y
The same as with
p
p
l
l
o
o
t
t with the exception that
logarithmic scale is used for Y-axis.
s
s
u
u
b
b
p
p
l
l
o
o
t
t
Breaks the current figure to subplots.
t
t
i
i
t
t
l
l
e
e('text') Adds a title above the figure.
x
x
l
l
a
a
b
b
e
e
l
l('text') X-axis label
y
y
l
l
a
a
b
b
e
e
l
l('text') Y-axis label
Table 6: Various functions that help in the creation of 2D-plots.
Zobrazit stránku 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 118 119

Komentáře k této Příručce

Žádné komentáře