MATLAB FINANCIAL DERIVATIVES TOOLBOX Bedienungsanleitung Seite 57

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 119
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 56
56
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
-15
-10
-5
0
5
10
15
20
Comments:
Experimenting with various functions and facilities related with
the plots. The last
p
p
l
l
o
o
t
t command shows how few plots can be
depicted in one figure without using the
h
h
o
o
l
l
d
d
o
o
n
n command.
The following examples, concern the creation of some subplots in one figure
window. If you view the online help for the
s
s
u
u
b
b
p
p
l
l
o
o
t
t command, you will see
that it takes three input arguments. That is, it is called as:
s
s
u
u
b
b
p
p
l
l
o
o
t
t(m,n,p)”
It breaks the figure window into an m-by-n matrix of small axes, selects the
p-th axes for the current plot, and returns the axis handle. The axes are
counted along the top row of the figure window, then the second row, etc.
The
s
s
u
u
b
b
p
p
l
l
o
o
t
t function instructs which subplot is handled at the current time.
After the
s
s
u
u
b
b
p
p
l
l
o
o
t
t command, a
p
p
l
l
o
o
t
t command should follow. See the following
examples:
Matlab’s command:
>> close all; subplot(2,3,1); plot(x,y, 'r--'); title('Subplot 1');
>> subplot(2,3,2); plot(x,y1, 'y*'); title('Subplot 2');
>> subplot(2,3,3);
>> subplot(2,3,5); plot(randn(1,30), 'bo:'); title('Subplot 5');
>> subplot(2,3,6); plot(x,y, 'bp--', x, (y1.^2), 'rh', x, log(y1.^2),'bs');
>> title('Subplot 6');
Seitenansicht 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 118 119

Kommentare zu diesen Handbüchern

Keine Kommentare