~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/strings/string.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH string 1 "April 1993" "Scilab Group" "Scilab Function"
 
2
.so ../sci.an
 
3
.SH NAME
 
4
string - conversion to string
 
5
.SH CALLING SEQUENCE
 
6
.nf
 
7
string(x)
 
8
[out,in,text]=string(x)
 
9
.fi
 
10
.SH PARAMETERS
 
11
.TP
 
12
x
 
13
: real matrix or function
 
14
.SH DESCRIPTION
 
15
converts a matrix into a matrix of strings.
 
16
.LP
 
17
If \fVx\fR is a function  \fV[out,in,text]=string(x)\fR  returns
 
18
three vectors strings : \fVout\fR is the vector of output variables,
 
19
\fVin\fR is the vector of input variables, and \fVtext\fR is
 
20
the (column) vector of the source code of the function.
 
21
.LP
 
22
If  \fVx\fR is a \fVlib\fR variable, text is a character string column
 
23
vector. The first element contains the path of library file and the 
 
24
other the name of functions it defines.
 
25
.LP
 
26
Character strings are defined as \fV'string'\fR (between quotes) or
 
27
\fV"string"\fR (between doublequotes);
 
28
matrices of strings are defined as usual constant matrices.
 
29
.LP
 
30
Concatenation of strings is made by the \fV+\fR operation.
 
31
.SH EXAMPLES
 
32
.nf
 
33
string(rand(2,2))
 
34
deff('y=mymacro(x)','y=x+1')
 
35
[out,in,text]=string(mymacro)
 
36
x=123.356; 'Result is '+string(x)
 
37
.fi
 
38
.SH SEE ALSO
 
39
part, length, quote, evstr, execstr, strsubst, strcat, strindex, sci2exp
 
40
 
 
41
 
 
42
 
 
43