Biomodèles/Biomodels
SCILAB 3.0 PAS A PAS
SCILAB 3.0 STEP-TO-STEP

Jacques-Deric Rouault

Laboratoire de Neurobiologie de l'Apprentissage, de la Mémoire et de la Communication. CNRS UMR 8620, Bat. 446, Université Paris-Sud, F91400 Orsay

Orscilab
ORSCILAB

20 LES MATRICES DE COMPLEXES/FLOTTANTS
20 MATRICES OF COMPLEX/FLOAT
20.3 Opérateurs / Operators
Version 2.1.2 du 9 Mars 2005 / Version 2.1.1, March 9th 2005
Biomodèles/Biomodels N°1 pp 0x-0y Décembre 2004 December 2004

Retour à la Table générale / Return to the General table
Index général / General index
Passage à la section suivante 20.4 / Next section 20.4

a
- (Unaire, Matrice, Monadic, Matrix)
+ (Matrice, Matrix)
- (Matrice, Matrix)

b
* (Scalaire, Matrice, Scalar, Matrix)
c
* (Matrice, Matrix)
d
.* (Matrice, Matrix)
e
.*. (Matrice, Matrix)
kron (Matrice, Matrix)
Produit de Kronecker
Kronecker product

f
/ (Inverse, Matrice, Inverse, Matrix)
g
/ (Matrice, Matrix)
h
./ (Matrice, Matrix)
i
/. (Matrice, Matrix)
j
\ (Matrice, Matrix)
k
.\ (Matrice, Matrix)
l
\. (Matrice, Matrix)

Les opérateurs unaire - (moins, opposé), et binaires + (addition) et - (soustraction) opèrent terme à terme sur les matrices.
The monadic - (opposite) and diadic + (addition) and -(soustraction) operate term to term on matrices.

// PROGRAMME SPAS200301
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = -m1,

Ch20Sc03-Fig01

// PROGRAMME SPAS200302
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [9, 8, 7; 6, 5, 4; 3, 2, 1];
m3 = m1+m2,

Ch20Sc03-Fig02

// PROGRAMME SPAS200303
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [9, 8, 7; 6, 5, 4; 3, 2, 1];
m3 = m1-m2,

Ch20Sc03-Fig03

L' opérateur * entre un scalaire flottant/complexe et une matrice opère terme à terme.
The operator * between a scalar float/complex and a matrix operates term to term.

// PROGRAMME SPAS200304
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = 2*m1,

Ch20Sc03-Fig04


L' opérateur * entre deux matrices effectue le produit matriciel. Attention aux correspondances de dimensions.
The operator * between two matrices performs the matricial product. Caution with the correspondance of dimensions.

// PROGRAMME SPAS200305
m1 = [1, 2; 4, 5; 7, 8];
m2 = [9, 8, 7; 6, 5, 4];
m3 = m1*m2,


Ch20Sc03-Fig05


L' opérateur .* permet de calculer le produit terme à terme de deux matrices.
The operator .* computes the term to term product of two matrices.


// PROGRAMME SPAS200306
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [9, 8, 7; 6, 5, 4; 3, 2, 1];
m3 = m1.*m2,


Ch20Sc03-Fig06


L' opérateur .*. et la fonction kron calculent le produit de Kronecker de deux matrices.
The operator .*. and the function kron compute the Kronecker product of two matrices.


// PROGRAMME SPAS200307
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [9, 8, 7; 6, 5, 4; 3, 2, 1];
m3 = m1.*.m2,
m4 = kron (m1, m2),

Ch20Sc03-Fig07


L' opérateur / et la fonction inv permettent de calculer l'inverse d'une matrice.
The operator / and the function inv compute the inverse of a matrix.


// PROGRAMME SPAS200308
m1 = [1, 8, 5; 2, 8, 4; 5, 2, 9];
m2 = 1/m1,
m3 = inv (m1),

Ch20Sc03-Fig08


La division / de deux matrices consiste à multiplier par l'inverse.
The division / of two matrices consists in multiplying by the inverse.


// PROGRAMME SPAS200309
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [1, 8, 5; 2, 8, 4; 5, 2, 9];
m3 = m1/m2,


m3 est solution de m3 * m2 = m1 (division à droite).
m3 is solution of m3 * m2 = m1 (right division).

Ch20Sc03-Fig09

L' opérateur ./ permet de calculer la division terme à terme de deux matrices.
The operator ./ computes the term to term division of two matrices.


// PROGRAMME SPAS200310
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [1, 8, 5; 2, 8, 4; 5, 2, 9];
m3 = m1./m2,


Ch20Sc03-Fig10


L' opérateur /. effectue l'opération m1 /. m2 = 1 / (m1*eye()+m2*m1)
The operator /. performsthe operation m1 /. m2 = 1 / (m1*eye()+m2*m1).


// PROGRAMME SPAS200311
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [1, 8, 5; 2, 8, 4; 5, 2, 9];
m3 = m1/.m2,


Ch20Sc03-Fig11


L'opérateur  \ effectue la division à gauche.
The operator \ performs the left division.


// PROGRAMME SPAS200312
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [1, 8, 5; 2, 8, 4; 5, 2, 9];
m3 = m1\m2,


m3 est solution de m2 * m3 = m1 (division à gauche).
m3 is solution of m2 * m32 = m1 (left division).

Ch20Sc03-Fig12

L' opérateur .\ permet de calculer la division terme à terme de deux matrices (identique à ./).
The operator .\ computes the term to term division of two matrices (identical to ./).


// PROGRAMME SPAS200313
m1 = [1, 2, 3; 4, 5, 6; 7, 8, 9];
m2 = [1, 8, 5; 2, 8, 4; 5, 2, 9];
m3 = m1./m2,


Ch20Sc03-Fig13


L' opérateur \. n'est pas défini.
The operator \. is not defined.


Retour à la Table générale / Return to the General table
Index général / General index
Passage à la section suivante 20.4 / Next section 20.4