![]() |
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 |
13 LES LISTES TYPEES MLIST 13 THE TYPED LISTS MLIST |
13.2 Champs d'une liste / Fields of a list |
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.3 / Next section 13.3 |
a |
|
b |
definefields (mlist) |
c |
null (mlist) |
d |
setfield (mlist) |
e |
getfield (mlist) |
// PROGRAMME SPAS130201 : mlist
m=mlist(["nom";"ch1";"ch2";"ch3"],1.1, 1.2, 1.3); m("ch2"), m.ch2, m(3), |
//
PROGRAMME SPAS130202 - mlist definefields
mm=mlist(["nom";"ch1";"ch2";"ch3"]); mm.ch3="toto"; v = definedfields (mm), |
//
PROGRAMME SPAS130203 - mlist null
mm=mlist(["nom";"ch1";"ch2";"ch3"], 1, 10, 3.50); mm.ch1, mm.ch1 = null; mm.ch1, mm(1) = null; mm.ch1, |
//
PROGRAMME SPAS130204 - mlist affectation setfield
mm=mlist(["nom";"ch1";"ch2";"ch3"],1, 2, 3); v = int32(257); setfield ("ch3",v,mm) mm.ch3, |
//
PROGRAMME SPAS130205 - mlist extraction multiple getfield
mm=mlist(["nom";"ch1";"ch2";"ch3"],4, 5, 7); [a, b] = getfield (["ch3", "ch1"],mm), |
Retour à la Table générale / Return to the General table |
Index général / General index |
Passage à la section suivante 13.3 / Next section 13.3 |