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

12 LES LISTES LIST
12 THE LISTS LIST
12.1 Définition / Définition
Version 2.1.3 du 26 janvier 2005 / Version 2.1.3, January 26th 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 12.2 / Next section 12.2

a
List (Type)
Liste (Type)

b
Champ (Liste)
Element (Liste, List)
Empty (List)
Field (List)
Vide (Liste)
() (Liste, List)

c
length (Liste, List)
lstsize (Liste, List)
size (Liste, List)
d
list (Type)

Les listes de type mlist et tlist sont traitées dans les chapitres 13 et 14. Les polynomes et les fractions rationnelles rlist sont traités au chapitre 15. Les sytèmes dynamiques linéaires lsslist seront traités ultérieurement.
The lists of type mlist and tlist are treated in the chapter5 13 and 14. The polynoms and rationals rlist are treated in the chapter 15. The linear dynamic systems lsslist will be treated later.
 
Une liste est un ensemble ordonné d'éléments ou champs de types différents. Une liste peut comprendre des matrices ou d'autres listes. () représente une liste vide.
A list is an ordered set of elements or fields of different types. A list can be compound with matrices or other lists. () represents an empty list.

// PROGRAMME SPAS120101 - list
l1 = list(),
l2 = list (12.5,"abc",1:10),

Ch12Sc01-Fig01

Les 3 champs de la liste l2 sont notés l2(1), l2(2) et l2(3).
The 3 fields of the list l2 are l2(1), l2(2) and l2(3).

Les fonctions size, lstsize et length retournent le nombre de champs qui composent la liste.
The functions size, lstsize and length return the number of fields of the list.

// PROGRAMME SPAS120102 - list  size
l = list (12.5,"abc",1:10);
s1 = size (l),
s2 = lstsize (l),
s3 = length (l),

Ch12Sc01-Fig02

Les listes sont de type 15 ou list. Lists are defined as type 15 or list.

// PROGRAMME SPAS120103 : list  type typeof
l = list (12.5,"abc",1:10);
t1 = type (l),
t2 = typeof (l),

Ch12Sc01-Fig03

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