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

« back to all changes in this revision

Viewing changes to man/programming/setfield.man

  • 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
 
.TH setfield 1 "September 1999" "Scilab Group" "Scilab Function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
setfield -  list field insertion
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
setfield(i,x,l)
8
 
.fi
9
 
.SH PARAMETERS
10
 
.TP 15
11
 
x
12
 
: matrix  of any  possible types
13
 
.TP 15
14
 
l
15
 
: list, tlist or mlist variable
16
 
.TP 15
17
 
i
18
 
: field index, see insertion for more details.
19
 
.SH DESCRIPTION
20
 
This function is an equivalent of \fVl(i)=x\fR syntax for field
21
 
extraction with the only difference that it also applies to
22
 
\fVmlist\fR objects.
23
 
.SH EXAMPLE
24
 
.nf
25
 
l=list(1,'qwerw',%s)
26
 
l(1)='Changed'
27
 
l(0)='Added'
28
 
l(6)=['one more';'added']
29
 
//
30
 
 
31
 
a=hypermat([2,2,2],rand(1:2^3));// hypermatrices are coded using mlists
32
 
setfield(3,1:8,a);a // set the field value to 1:8
33
 
.fi
34
 
.SH SEE ALSO
35
 
insertion