MATLAB POLYSPACE RELEASE NOTES Instrukcja Użytkownika Strona 106

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 240
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 105
3 Graphics
title('Plot of the Sine Function','FontSize',12)
Plotting Multiple Data Sets in One Graph
Multiple x-y pair arguments create multiple graphs with a single call to plot.
MATLAB automatically cycles through a predefined (but user settable) list of
colors to allow discrimination among sets of data. See the axes
ColorOrder
and LineStyleOrder propertie s.
For example, these statements plot three related functions of
x,witheach
curve in a separate distinguishing color:
x = 0:pi/100:2*pi;
y = sin(x);
y2 = sin(x-.25);
y3 = sin(x-.5);
plot(x,y,x,y2,x,y3)
The legend command provides an easy way to identify the individual plots:
3-50
Przeglądanie stron 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 239 240

Komentarze do niniejszej Instrukcji

Brak uwag