5.3. "Area" Command: Telecommunications Laboratory - Zampognaro Roseti

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Telecommunications Laboratory – Zampognaro; Roseti.

0.8

0.6

0.4

0.2

-0.2

-0.4

-0.6

-0.8

-1
1 2 3 4 5 6 7 8 9 10

Figure 9: stem with style edited programmatically.

5.3. “area” command

filling between the line and the axis; for instance the following commands generate the next figure:
The “area” command, as for “plot”, allow to plots value pairs of x and y vectors, adding a colour

>> x = 0:0.01:10;
>> area(x, sin(2*x) .* exp(-x) );

While the full documentation of the command is available on the help of Matlab, please note that a
key parameter, the colour of the area, can be edited with the property 'FaceColor'.
0.6

0.5

0.4

0.3

0.2

0.1

-0.1

-0.2
0 2 4 6 8 10
Figure 10: Figure using area command

If the two value series have different ranges, it is possible to define a secondary  axis by using the
5.1.“plotyy” command

command “plotyy”:

36

You might also like