~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/programming/setfield.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
setfield          Scilab Group          Scilab Function            setfield
2
 
NAME
3
 
   setfield -  list field insertion
4
 
  
5
 
CALLING SEQUENCE
6
 
 setfield(i,x,l)
7
 
PARAMETERS
8
 
 x               : matrix  of any  possible types
9
 
                 
10
 
 l               : list, tlist or mlist variable
11
 
                 
12
 
 i               : field index, see insertion for more details.
13
 
                 
14
 
DESCRIPTION
15
 
   This function is an equivalent of l(i)=x syntax for field extraction with
16
 
  the only difference that it also applies to mlist objects.
17
 
  
18
 
EXAMPLE
19
 
 l=list(1,'qwerw',%s)
20
 
 l(1)='Changed'
21
 
 l(0)='Added'
22
 
 l(6)=['one more';'added']
23
 
 //
24
 
 
25
 
 a=hypermat([2,2,2],rand(1:2^3));// hypermatrices are coded using mlists
26
 
 setfield(3,1:8,a);a // set the field value to 1:8
27
 
SEE ALSO
28
 
   insertion
29