MATLAB FINANCIAL DERIVATIVES TOOLBOX Manual de usuario Pagina 41

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 119
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 40
40
It is the same idea with the transpose of a row vector to a column one and
vise versa. The transpose of an
n
m
×
matrix is an
m
n
×
one that is found if
the rows of the original matrix become columns in the transposed one.
Recall that the transpose in Matlab is performed with “ ' ”. See the following
examples to digest this issue.
Matlab’s command:
>> A4=[1 2 3; 4 5 6], size(A4), A4', size(A4'), A5=[A4' A4']
Matlab’s response:
A4 =
1 2 3
4 5 6
ans =
2 3
ans =
1 4
2 5
3 6
ans =
3 2
A5 =
1 4 1 4
2 5 2 5
3 6 3 6
Comments:
Exploiting the transpose of a matrix.
2.2.2 Elaborating on Parts of Matrices The Colon Notation
As noted before, in Matlab, a matrix element position is indexed according to
the row and column number. Recall the aforementioned “A” matrix:
=
×
1422
3521
42
A
If someone wants to extract the elements:
12
a ,
23
a , , and
24
a , this can be
done in the following way (
A
A has already been created and should be stored
Vista de pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 118 119

Comentarios a estos manuales

Sin comentarios