mfprintf — converts, formats, and writes data to a file
mfprintf(fd,format,a1,...,an);
scalar, file descriptor given by mopen
(it's a positive integer).
if fd equals 0 redirection in stderr.
if fd equals 6 redirection in stdout.
OBSOLETE :The value -1
refers to the
default file ( i.e the last opened file).
a Scilab string describing the format to use to write the remaining operands. The format operand follows, as close as possible, the C printf format operand syntax.
a character string, string to be scanned.
Specifies the data to be converted and printed according to the format parameter.
The mfprintf
function is a interface for C-coded version of
fprintf
functions.
The mfprintf
function writes formatted operands
to the file specified by the file desciptor fd
. The
argument operands are formatted under control of the format
operand.
this function may be used to output column vectors of numbers and string vectors without an explicit loop on the elements. In that case this function iterates on the rows. The shortest vector gives the number of time the format has to be iterated.
An homogeneous sequence of identical type parameters can be replaced by a matrix