File: getfield.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (33 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.TH getfield 1 "September 1999" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
getfield -  list field extraction
.SH CALLING SEQUENCE
.nf
[x,...]=getfield(i,l)
.fi
.SH PARAMETERS
.TP 15
x
: matrix  of any  possible types
.TP 15
l
: list, tlist or mlist variable
.TP 15
i
: field index, see extraction for more details.
.SH DESCRIPTION
This function is an equivalent of \fV[x,...]=l(i)\fR syntax for field
extraction with the only difference that it also applies to
\fVmlist\fR objects.
.SH EXAMPLE
.nf
l=list(1,'qwerw',%s)
[a,b]=getfield([3 2],l)

a=hypermat([2,2,2],rand(1:2^3));// hypermatrices are coded using mlists
a(1) // the a(1,1,1) entry
getfield(1,a) // the mlist first field
.fi
.SH SEE ALSO
extraction