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

19 OPREATIONS GENERALES SUR LES MATRIVES
19 GENERAL OPRATIONS ON MATRICES
19.1 Extrema / Extrema
Version 2.1.2 du 28 Février 2005 / Version 2.1.2, February 28th 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 19.2 / Next section 19.2

a

b
max (Matrice, Matrix)
maxi (Matrice, Matrix)
min (Matrice, Matrix)
mini (Matrice, Matrix)
c
r (max, Matrice, Matrix)
r (min, Matrice, Matrix)

d
c (max, Matrice, Matrix)
c (min, Matrice, Matrix)

En plus des  fonctions générales sur les matrices (chapitre 17) nous traitons ici des fonctions opérant sur les rang des éléments des matrices. Le type des éléments des matrices doit  posséder une structure d'ordre : numérique pour les flottants, lexicographique pour les chaines de caractères, taille du module pour les complexes.
Besides the general functions on matrices (Chapter 17) the functions operating on the ranks of the elements of matrices are considered here. The type of the elements of the matrices must present an order structure: numerical for floats, lexicographical for strings, module size for complexes.

Toute matrice à deux dimensions peut être considérée soit comme un vecteur, soit comme un ensemble de lignes, soit comme un ensemble de colonnes.
Besides the general functions on matrices (Chapter 17) the functions operating on the ranks of the elements of matrices are considered here. The type of the elements of the matrices must present an order structure: numerical for floats, lexicographical for strings, module size for complexes.

Les fonctions  max (ou maxi) et min (ou mini) recherchent le plus grand et le plus petit élément d'une matrice de flottants.
The functions max (or maxi) and min (or mini) look for the greatest and the smallest elements of a float matrix.

// PROGRAMME SPAS190101
m = [1, 2, 3; 4, 5, 6; 7, 8, 9];
f1 = max (m),
f2 = min (m),

Ch19Sc01-Fig01

Il est possible d'avoir les rangs des éléments dans la matrice d'origine.
It is possible to obtain the ranks of the elements in the original matrix.


// PROGRAMME SPAS190102
m = [1, 2, 3; 4, 5, 6; 7, 8, 9];
[f1, r1] = max (m),
[f2, r2] = min (m),

Ch19Sc01-Fig02

Il est possible d'avoir les maximum ou minimum de chaque ligne.
It is possible to obtain the maximum or minimum of each line.


// PROGRAMME SPAS190103
m = [1, 2, 3; 4, 5, 6; 7, 8, 9];
f1 = max (m,"r"),
f2 = min (m,"r"),

Ch19Sc01-Fig03

Il est possible d'avoir les maximum ou minimum de chaque colonne.
It is possible to obtain the maximum or minimum of each column.


// PROGRAMME SPAS190104
m = [1, 2, 3; 4, 5, 6; 7, 8, 9];
f1 = max (m,"c"),
f2 = min (m,"c"),

Ch19Sc01-Fig04

.

A TRAITER : nanmin, nanmax

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