![]() |
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 |
14 LES LISTES TYPEES TLIST 14 THE TYPED LISTS TLIST |
14.2 Champs d'une liste / Fields of a list |
Version 2.1.2 du 27 janvier 2005 / Version 2.1.2, January 27th 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 14.3 / Next section 14.3 |
a |
|
b |
definefields (tlist) |
c |
null (tlist) |
d |
setfield (tlist) |
e |
getfield (tlist) |
// PROGRAMME SPAS140201 : tlist
t=tlist(["nom";"ch1";"ch2";"ch3"],1.1, 1.2, 1.3); t("ch2"), t.ch2, t(3), |
//
PROGRAMME SPAS140202 - tlist definefields
tt=tlist(["nom";"ch1";"ch2";"ch3"]); tt.ch2="bibi"; v = definedfields (tt), |
//
PROGRAMME SPAS140203 - tlist null
tt=tlist(["nom";"ch1";"ch2";"ch3"], 10, 20, 30); tt("ch1"), tt("ch1") = null; tt("ch1"), tt(1) = null; tt("ch1"), |
//
PROGRAMME SPAS130204 - tlist affectation setfield
tt=tlist(["nom";"ch1";"ch2";"ch3"],10, 25, 30); v = int32(257); setfield ("ch3",v,tt) tt.ch3, |
//
PROGRAMME SPAS140205 - tlist extraction multiple getfield
tt=tlist(["nom";"ch1";"ch2";"ch3"],45, 55, 75); [a, b] = getfield (["ch3", "ch2"],tt), |
Retour à la Table générale / Return to the General table |
Index général / General index |
Passage à la section suivante 14.3 / Next section 14.3 |