1
.TH printf 1 "May 1994" "Scilab Group" "Scilab Function"
4
sprintf - Emulator of C language sprintf function
7
str=sprintf(format,value_1,..,value_n)
12
: a Scilab string. Specifies a character string combining literal characters with conversion
16
: Specifies the data to be converted according to the format parameter.
19
: column vector of character strings
22
The \fVsprintf\fR function converts, formats, and stores its
23
\fVvalue\fR parameters, under control of the \fVformat\fR parameter.
25
The \fVformat\fR parameter is a character string that contains two
29
: which are copied to the output stream.
31
Conversion specifications
32
: each of which causes zero or more items
33
to be fetched from the \fVvalue\fR parameter list. see
34
\fVprintf_conversion\fR for details
37
If there are not enough items for \fVformat\fR in the
38
\fVvalue\fR parameter list, \fVsprintf\fR generate an error.
39
If any \fVvalue\fRs remain after the entire \fVformat\fR has been
40
processed, they are ignored.
42
Note: \fVsprintf\fR is obsolete, use \fVmsprintf\fR instead.
46
sprintf('%3d Fahrenheit = %6.1f Celsius',fahr,(5/9)*(fahr-32))
50
string, print, write, format, disp, file, printf, fprintf, msprintf