MATLAB FINANCIAL DERIVATIVES TOOLBOX Manuel d'utilisateur Page 47

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 119
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 46
46
11
1
×××
×=
nnmm
CAC
Let’s define the “A” and “B” matrices:
=
×
24232221
14131211
42
aaaa
aaaa
A ,
=
×
4241
3231
2221
1211
24
bb
bb
bb
bb
B
Like linear algebra, Matlab products with matrices (and/or vectors) are
calculated as follows:
=×=
×××
2221
1211
244222
cc
cc
BAC
++++++
++++++
=
×
42243223222212214124312321221121
42143213221212114114311321121111
22
babababababababa
babababababababa
C
That is, the element in the (1,1) position of the new matrix “C” if the inner
product of the 1
st
row of “A” with the 1
st
column of “B”, the (1,2) element of
“C” is the inner product of the 1
st
row of “A” with the 2
nd
column of “B” and
so on. Work through the following examples to digest this topic.
Matlab’s command:
>> clear; A=[ 1 -2 5 -3; -2 2 4 1]; B=[2 3;1 0;2 -1;1 4]; A_B=[A;B'];
>> R1=[-2 -1 3 2]; C1=[1; -1; 2; 0];
>> C=A*B, Row=R1*A_B, Col= A_B*C1, A*(A_B*A_B)*B
Matlab’s response:
C =
7 -14
7 -6
Row =
12 5 -10 16
Vue de la page 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 118 119

Commentaires sur ces manuels

Pas de commentaire