Man Scilab

list
Scilab Function

list - Scilab object and list function definition

Calling Sequence

list(a1,....an)

Description

Creates a list with elements ai 's which are arbitrary Scilab objects ( matrix, list,... ). Type of list objects is 15.

list() is the empty list (0 element).

Operations on lists:

extraction 12 : [x,y,z...]=l(v) where v is a vector of indices; [x,y,z]=l(:) extracts all the elements.

insertion : l(i)=a

deletion : l(i)=null() removes the i-th element of the list l .

Examples


x=list(1,2,3);
x(4)=10;
x(10)='a'
 
  

See Also

null ,   tlist ,   insertion ,   extraction ,   size ,   length ,  

Back