MATLAB FINANCIAL DERIVATIVES TOOLBOX Instrukcja Użytkownika Strona 15

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 119
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 14
14
The square brackets “[ ]” indicate the definition of the vector. Also, the space
between the vector numbers separates the vector’s elements. The comma “,”
is another way of separating the elements. Additionally, note that the default
variable
a
a
n
n
s
s
has lost its previous value in order to store the results of the
most recent operation.
As another example, enter the following command that creates a 3-by-3
magic square saved in the matrix variable
M
M:
“M=
m
m
a
a
g
g
i
i
c
c(3)”
and after pressing [Enter] you get the Matlab’s result (Figure 6):
Figure 6: A 3-by-3 magic table
The magic square is created using the element function
m
m
a
a
g
g
i
i
c
c that is
already built in Matlab.
Przeglądanie stron 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 118 119

Komentarze do niniejszej Instrukcji

Brak uwag