Next: Linear dynamical systems
Up: OBJECTS
Previous: MATRICES
-->L=list(a,-(1:5), Mp,['this','is';'a','list']) //list
L =
L(1)
1.
L(2)
! - 1. - 2. - 3. - 4. - 5. !
L(3)
! 2 !
! 1 + 3z + 4.5z 1 - z !
! !
! 2 3 !
! 1 z + 3z + 4.5z !
L(4)
!this is !
! !
!a list !
-->L(2)(3) //sub-entry in list
ans =
- 3.
-->Lt=tlist(['mylist','color','position','weight'],'blue',[0,1],10) //typed-list
Lt =
Lt(1)
!mylist color position weight !
Lt(2)
blue
Lt(3)
! 0. 1. !
Lt(4)
10.
-->Lt('color') //extracting
ans =
blue
-->Lt('weight') //extracting
ans =
10.
Scilab group