MATLAB FINANCIAL DERIVATIVES TOOLBOX Manual do Utilizador Página 15

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 119
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 118 119

Comentários a estes Manuais

Sem comentários