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.4 Sommes et produits / Sums and products
Version 2.1.1 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.5 / Next section 20.5

a
sum (Matrice, Matrix)
c (sum, Matrice, Matrix)
r (sum, Matrice, Matrix)

b
nansum (Matrice, Matrix)
c (nansum, Matrice, Matrix)
r (nansum, Matrice, Matrix)
c

d

e

f

g

h

i

j

k


La fonction sum retourne la somme de la totalité des éléments, des lignes ou des colonnes d'une matrice.
The function sum returns the sum of all elements, of lines or of columns of a matrix.

// PROGRAMME SPAS200401
m = [1, 2, 3; 4, 5, 6; 7, 8, 9];
s = sum (m),
s = sum (m,"*"),


Ch20Sc04-Fig01

// PROGRAMME SPAS200402
m = [1, 2, 3; 4, 5, 6; 7, 8, 9];
s = sum (m,"r"),
s = sum (m,1),

Ch20Sc04-Fig02


// PROGRAMME SPAS200403
m = [1, 2, 3; 4, 5, 6; 7, 8, 9];
s = sum (m,"c"),
s = sum (m,2),

Ch20Sc04-Fig03

Les valeurs %nan et %inf sont absorbantes.
The values %nan and %inf are adsorbent.

// PROGRAMME SPAS200405
m = [1, %inf, 3; 4, 5, 6; 7, 8, %nan];
s = sum (m,"c"),


Ch20Sc04-Fig04


La fonction nansum retourne la somme de la totalité des éléments, des lignes ou des colonnes d'une matrice, en igorant les valeurs %nan.
The function nansum returns the sum of all elements, of lines or of columns of a matrix and ignores the values %nan.

// PROGRAMME SPAS200406
m = [1, 2, 3; 4, 5, 6; 7, 8, %nan];
s1 = nansum (m),
s2 = nansum (m,"r"),
s3 = nansum (m,1),
s4 = nansum (m,"c"),
s5 = nansum (m,2),

Ch20Sc04-Fig05


cumsum nancumsum
prod cumprod     


20.5 : find clear thrownan
20.6 : normes matricielles : norm h_norm dhnorm h2norm abs


inversion :
diagonalisation : eigenmarkov
diff : differentielle

 sysdiag ?

 kron
eval3d feval eval3dp
pen2ea
inv pinv
polar sdv sva chol
rotate scaling
conversion : bool2s

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