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

13 LES LISTES TYPEES MLIST
13 THE TYPED LISTS MLIST
13.1 Définition / Definition
Version 2.1.2 du 26 janvier 2005 / Version 2.1.2, 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 13.2 / Next section 13.2

a
mlist (Type)
b
. (Champ de mlist, Field of mlist)
c
length (mlist)
lstsize (mlist)
size (mlist)

d


La liste mlist est une liste typée : dans la liste correspondante de type list, le premier champ est une chaine de caractères et les champs suivants sont les champs de la liste.
The list mlist is a typed list : in the corresponding list of type list, the first field is a string of characters and the following fields are the fields of the list.

// PROGRAMME SPAS130101 - mlist 
m=mlist(["nom";"ch1";"ch2";"ch3"],1, "abc", 3);
m.ch1,
m.ch2,
m.ch3,

Les 3 champs de la liste typée m sont dénommés  m.ch1, m.ch2 et m.ch3.

The 3 fields of the typed list m are named m.ch1, m.ch2 and m.ch3.

Ch13Sc01-Fig01

Les fonctions lstsize et length retournent le nombre total de champs qui composent la liste. La fonction size n'est pas définie.
The functions lstsize and length return the total number of fields of the list. The function size is not defined.

// PROGRAMME SPAS130102 - mlist size
m=mlist(["nom";"ch1";"ch2";"ch3"],1, "abc", 3);
s2 = lstsize (m),
s3 = length (m),


Ch13Sc01-Fig02

Les listes mlist sont de type 17 ou
du premier nom du premier champ.  
mlist
Lists are defined as type 17 or
of the first name of the first field.

// PROGRAMME SPAS130103 : mlist  type typeof
m=mlist(["nom";"ch1";"ch2";"ch3"],1, "abc", 3);
t1 = type (m),
t2 = typeof (m),

Ch13Sc01-Fig03

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