![]() |
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 |
12 LES LISTES LIST 12 THE LISTS LIST |
12.2 Champs d'une liste / Fields of a list |
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.3 / Next section 12.3 |
//
PROGRAMME SPAS120201 - list
l = list (12.5,"abc",1:3); l(5) = 10; l, |
//
PROGRAMME SPAS120203 - list definefields
l = list (12.5,"abc",1:3); l(5) = 10; v = definedfields (l), |
//
PROGRAMME SPAS120203 - list null
l = list (12.5,"abc",1:10); l(2) = null; l, |
//
PROGRAMME SPAS120204 - list affectation
l = list (12.5,"abc",1:5); l(2) = int8(10); l, |
//
PROGRAMME SPAS120205 - list affectation setfield
l = list (12.5,"abc",1:5), v = int8(10); setfield (2,v,l); l, |
//
PROGRAMME SPAS120206 - list extraction
l = list (12.5,"abc",1:5); [a, b] = l([3 1]), |
//
PROGRAMME SPAS120207 - list extraction :
l = list (12.5,"abc",1:5); [a, b, c] = l(:), |
//
PROGRAMME SPAS120208 - list extraction getfield
l = list (12.5,"abc",1:6); v = getfield (2,l), |
//
PROGRAMME SPAS120209 - list extraction multiple getfield
l = list (12.5,"abc",1:6); [a, b] = getfield ([2, 1],l), |
Retour à la Table générale / Return to the General table |
Index général / General index |
Passage à la section suivante 12.3 / Next section 12.3 |